mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 06:07:41 +00:00
fix: typo on require statement (WithLocalSvg) (#2223)
This PR fixes typo on require statement. It makes WithLocalSvg function as expected without crash.
This commit is contained in:
@@ -26,7 +26,7 @@ export async function loadAndroidRawResource(uri: string) {
|
||||
const RNSVGRenderableModule: any =
|
||||
// neeeded for new arch
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
require('./fabric/NativeSvgRenderableModule').default;
|
||||
require('../fabric/NativeSvgRenderableModule').default;
|
||||
return await RNSVGRenderableModule.getRawResource(uri);
|
||||
} catch (e) {
|
||||
console.error(
|
||||
|
||||
Reference in New Issue
Block a user