Skip to content

Commit 17c5509

Browse files
authored
Update react-native-svg-transformer (#3038)
1 parent 3c1e0c3 commit 17c5509

File tree

4 files changed

+203
-364
lines changed

4 files changed

+203
-364
lines changed

demo/src/screens/componentScreens/ImageScreen.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const BROKEN_URL = 'file:///Desktop/website/img/cupcake.jpg';
99
const DEFAULT_SIZE = 100;
1010

1111
const file = Assets.svgs.demo.logo;
12-
const uri = {uri: 'http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg'};
13-
const uriWithCss = {uri: 'http://thenewcode.com/assets/svg/accessibility.svg'};
12+
const uri = {uri: 'https://www.svgrepo.com/show/530581/cell-phone.svg'};
13+
// const uriWithCss = {uri: ''}; // TODO: find an example
1414
const xml = `
1515
<svg width="32" height="32" viewBox="0 0 32 32">
1616
<path
@@ -43,7 +43,7 @@ enum SizeType {
4343
enum SvgType {
4444
File = 'file',
4545
Uri = 'uri',
46-
UriWithCss = 'use_with_css',
46+
// UriWithCss = 'use_with_css',
4747
Xml = 'xml'
4848
}
4949

@@ -79,8 +79,8 @@ class ImageScreen extends Component<{}, State> {
7979
return file;
8080
case SvgType.Uri:
8181
return uri;
82-
case SvgType.UriWithCss:
83-
return uriWithCss;
82+
// case SvgType.UriWithCss:
83+
// return uriWithCss;
8484
case SvgType.Xml:
8585
default:
8686
return xml;

expoDemo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"react-native-safe-area-context": "4.5.0",
2727
"react-native-screens": "~3.20.0",
2828
"react-native-svg": "13.4.0",
29-
"react-native-svg-transformer": "^1.0.0",
29+
"react-native-svg-transformer": "1.1.0",
3030
"react-native-ui-lib": "^7.1.0",
3131
"react-native-web": "~0.18.12",
3232
"unicorn-demo-app": "^7.1.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"react-native-reanimated": "3.4.0",
116116
"react-native-shimmer-placeholder": "^2.0.6",
117117
"react-native-svg": "^13.7.0",
118-
"react-native-svg-transformer": "^0.14.3",
118+
"react-native-svg-transformer": "1.1.0",
119119
"react-test-renderer": "18.2.0",
120120
"reassure": "^0.4.1",
121121
"shell-utils": "^1.0.10",

0 commit comments

Comments
 (0)