Closed Lelelo1 closed 2 years ago
Assets and embedding files
Create a folder called assets in src directory
They become accessible on both Android and iOS.
export function HomeScreen({ navigation }: HomeScreenProps) { return ( <flexboxLayout style={styles.container}> <webView height={200} src="~/assets/testIndex.html"/> </flexboxLayout> ); }
Files are added by NativeScript through adding web pack configuration on running the app. Use --env.verbose to see it.
--env.verbose
Assets and embedding files
Create a folder called assets in src directory
They become accessible on both Android and iOS.
Files are added by NativeScript through adding web pack configuration on running the app. Use
--env.verbose
to see it.