unicorn-demo-app 7.20.3-snapshot.4607 → 7.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ const BROKEN_URL = 'file:///Desktop/website/img/cupcake.jpg';
|
|
|
9
9
|
const DEFAULT_SIZE = 100;
|
|
10
10
|
|
|
11
11
|
const file = Assets.svgs.demo.logo;
|
|
12
|
-
const uri = {uri: '
|
|
13
|
-
|
|
12
|
+
const uri = {uri: 'http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg'};
|
|
13
|
+
const uriWithCss = {uri: 'http://thenewcode.com/assets/svg/accessibility.svg'};
|
|
14
14
|
const xml = `
|
|
15
15
|
<svg width="32" height="32" viewBox="0 0 32 32">
|
|
16
16
|
<path
|
|
@@ -43,7 +43,7 @@ enum SizeType {
|
|
|
43
43
|
enum SvgType {
|
|
44
44
|
File = 'file',
|
|
45
45
|
Uri = 'uri',
|
|
46
|
-
|
|
46
|
+
UriWithCss = 'use_with_css',
|
|
47
47
|
Xml = 'xml'
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -79,8 +79,8 @@ class ImageScreen extends Component<{}, State> {
|
|
|
79
79
|
return file;
|
|
80
80
|
case SvgType.Uri:
|
|
81
81
|
return uri;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
case SvgType.UriWithCss:
|
|
83
|
+
return uriWithCss;
|
|
84
84
|
case SvgType.Xml:
|
|
85
85
|
default:
|
|
86
86
|
return xml;
|