File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ import {
1616 NativeModules ,
1717 processColor ,
1818} from "react-native" ;
19+
1920// @ts -ignore
20- import assetRegistry from "react-native/Libraries/Image/AssetRegistry" ;
21+ import { getAssetByID } from "react-native/Libraries/Image/AssetRegistry" ;
22+
2123// @ts -ignore
2224import resolveAssetSource from "react-native/Libraries/Image/resolveAssetSource" ;
2325import { ViroSource } from "../Types/ViroUtils" ;
@@ -104,7 +106,7 @@ export class ViroMaterials {
104106 } else {
105107 var assetType = "unknown" ;
106108 if ( typeof material [ prop ] !== "object" ) {
107- var asset = assetRegistry . getAssetByID ( material [ prop ] ) ;
109+ var asset = getAssetByID ( material [ prop ] ) ;
108110 if ( asset ) {
109111 assetType = asset . type ;
110112 }
You can’t perform that action at this time.
0 commit comments