Udbhav Vikram Singh
Udbhav Vikram Singh

Reputation: 41

How to Lazy load webView in react native?

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

Answers (1)

Kirill Novikov
Kirill Novikov

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

Related Questions