File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/react-native-carplay/src/templates Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1- import { ImageSourcePropType , Platform } from 'react-native' ;
1+ import { Image , ImageSourcePropType , Platform } from 'react-native' ;
22import { CarPlay } from '../CarPlay' ;
33import { BarButton } from '../interfaces/BarButton' ;
44
5- // eslint-disable-next-line @typescript-eslint/no-var-requires
6- const resolveAssetSource = require ( 'react-native/Libraries/Image/resolveAssetSource' ) ;
7-
85export interface BaseEvent {
96 /**
107 * Template id that fired the event
@@ -152,8 +149,7 @@ export class Template<P> {
152149 traverse ( obj [ i ] ) ;
153150 }
154151 if ( String ( i ) . match ( / [ I i ] m a g e $ / ) ) {
155- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
156- obj [ i ] = resolveAssetSource ( obj [ i ] ) ;
152+ obj [ i ] = Image . resolveAssetSource ( obj [ i ] ) ;
157153 }
158154 }
159155 }
You can’t perform that action at this time.
0 commit comments