File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 120
120
"react-native-navigation" : " 7.40.1" ,
121
121
"react-native-reanimated" : " 3.8.1" ,
122
122
"react-native-shimmer-placeholder" : " ^2.0.6" ,
123
- "react-native-svg" : " ^13.7 .0" ,
123
+ "react-native-svg" : " 15.2 .0" ,
124
124
"react-native-svg-transformer" : " 1.5.0" ,
125
125
"react-test-renderer" : " 18.2.0" ,
126
126
"reassure" : " ^0.4.1" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { isSvg , isSvgUri } from '../../utils/imageUtils' ;
3
- import { SvgPackage } from '../../optionalDependencies' ;
3
+ import { SvgPackage , SvgCssUri } from '../../optionalDependencies' ;
4
4
5
5
const SvgXml = SvgPackage ?. SvgXml ;
6
- const SvgCssUri = SvgPackage ?. SvgCssUri ;
7
6
// const SvgProps = SvgPackage?.SvgProps; TODO: not sure how (or if) we can use their props
8
7
9
8
export interface SvgImageProps {
Original file line number Diff line number Diff line change 1
1
let SvgPackage : any ;
2
+ let svgCssForPackage14Higher : any ;
2
3
try {
3
4
SvgPackage = require ( 'react-native-svg' ) ;
5
+ svgCssForPackage14Higher = require ( 'react-native-svg/css' ) ;
4
6
// Sadly we cannot verify with require('react-native-svg-transformer');
5
7
} catch ( error ) { }
6
8
9
+ export const SvgCssUri = svgCssForPackage14Higher ?. SvgCssUri ?? SvgPackage ?. SvgCssUri ;
7
10
export default SvgPackage ;
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ export {default as BlurViewPackage} from './BlurViewPackage';
4
4
export { default as MomentPackage } from './MomentPackage' ;
5
5
export { default as NetInfoPackage } from './NetInfoPackage' ;
6
6
export { default as HapticFeedbackPackage } from './HapticFeedbackPackage' ;
7
- export { default as SvgPackage } from './SvgPackage' ;
7
+ export { default as SvgPackage , SvgCssUri } from './SvgPackage' ;
8
8
export { createShimmerPlaceholder } from './ShimmerPackage' ;
9
9
export { default as LinearGradientPackage } from './LinearGradientPackage' ;
Original file line number Diff line number Diff line change @@ -10269,16 +10269,16 @@ __metadata:
10269
10269
languageName : node
10270
10270
linkType : hard
10271
10271
10272
- " react-native-svg@npm:^13.7 .0 " :
10273
- version : 13.14.1
10274
- resolution : " react-native-svg@npm:13.14.1 "
10272
+ " react-native-svg@npm:15.2 .0 " :
10273
+ version : 15.2.0
10274
+ resolution : " react-native-svg@npm:15.2.0 "
10275
10275
dependencies :
10276
10276
css-select : ^5.1.0
10277
10277
css-tree : ^1.1.3
10278
10278
peerDependencies :
10279
10279
react : " *"
10280
10280
react-native : " *"
10281
- checksum : 273f05f2cceabf09f3909f57108d10f56aeb38981146e5f7b72cdb8595fbfb524af891845d4240a629c2f91ed120ae603d9efd579f7fb88521769aec71811136
10281
+ checksum : 0075d3c5bcf6bbbebe064364ec72c02eeff3fc0f2b1ba127bde26a8ecedc190a7890a910a6a051687318fa80504a3bc335eee2bfd6846b90193ca1608bae821e
10282
10282
languageName : node
10283
10283
linkType : hard
10284
10284
@@ -10359,7 +10359,7 @@ __metadata:
10359
10359
react-native-reanimated : 3.8.1
10360
10360
react-native-redash : ^12.0.3
10361
10361
react-native-shimmer-placeholder : ^2.0.6
10362
- react-native-svg : ^13.7 .0
10362
+ react-native-svg : 15.2 .0
10363
10363
react-native-svg-transformer : 1.5.0
10364
10364
react-test-renderer : 18.2.0
10365
10365
reassure : ^0.4.1
You can’t perform that action at this time.
0 commit comments