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 Tabs switch incorrectly when swipe is released over another element bug platform:android platform:ios react-native-pager-view repro provided. For example, it's possible to dynamically change the rendered tabs. Note that some functionalities are not available with the React Navigation 4 integration because of the limitations in React Navigation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |