Reputation: 41
I have Implemented using React.lazy and Suspense in react-native but it seems it does not working with react-native.
I had followed This Youtube Video
Basicaly I want to embed Youtube Player in react native app using react-native-youtube-iframe which uses webviw behind the scenes. but it makes the screen slow and feels like buggy.
I just want to lazy load this.
Upvotes: 1
Views: 779
Reputation: 3087
React.lazy
is about code-splitting which is not actual if you are using React Native and Hermes. Otherwise, if you don't use Hermes you can try Ram Bundle https://reactnative.dev/docs/ram-bundles-inline-requires.
Upvotes: 0