![]() If your renderScene function is expensive, it's good idea move each route to a separate component if they don't depend on the index, and use shouldComponentUpdate or mo in your route components to prevent unnecessary re-renders. The renderScene function is called every time the index changes. Optimization Tips Avoid unnecessary re-renders For example, it's possible to dynamically change the rendered tabs. TabView is an alternative way to build tabbed screens, without a need to configure routing. Note that some functionalities are not available with the React Navigation 4 integration because of the limitations in React Navigation. UI Kitten is an Open Source UI framework based on React Native with 20 customizable components and Dark/Light themes for building cross-platform mobile apps A bar with tabs styled by Eva.
0 Comments
Leave a Reply. |