1

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.

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Gone through the blog but did't understand anything, can you explains how it answers the Question sir
@UdbhavVikramSingh do you use Hermes JS engine?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.