Open modal performance is slow for Android
See original GitHub issueJust using the following code for item selection feature. Now i am using doc provided method to open modal. The modal will be shown after 2 seconds which makes UX bad. Any suggestion ? Thanks a lot !
<Modal
duration={0}
style={styles.jumpPageModal}
ref="jumpPageModal"
swipeToClose={false}
swipeArea={0}
onClosed={this._reactiveSwipeBack.bind()}
>
<ScrollView
contentContainerCustomStyle={styles.jumpPageModalScrollView}
ref="jumpPageScrollView"
showsVerticalScrollIndicator={false}
>
<View style={styles.jumpPageModalContainer}>
{this.state.jumpPageOption.map((x, i) => {
if (this.state.currentPage != i)
return (<TouchableOpacity key={i} style={styles.jumpPageOption}><Text>Page {i + 1}</Text></TouchableOpacity>)
return (<TouchableOpacity onLayout={this._getCurrentPageOptionOffset.bind(this)} key={i} style={styles.jumpPageOption}><Text style={styles.jumpPageOptionSelected}>Page {i + 1}</Text></TouchableOpacity>)
})}
</View>
</ScrollView>
</Modal>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:24
Top Results From Across the Web
React native modal display super slow iOS but not Android
We use modals to display informations but it takes ages to open on iOS (Where it's super fast on Android). On iOS (iPhone...
Read more >Buggy Performance Using Modals On Android. How To Fix?
I would recommend starting debugging by turning off each one of the Modal options to start to see what's causing performance issues. Strip...
Read more >What to do when your React app feels slow - ITNEXT
Tip: Having the devtools open can slow down your app and you might see noticeable performance difference (especially in animations) if you ...
Read more >Optimize Photoshop performance - Adobe Support
If Photoshop is running slower than expected on your computer, ... The Memory Usage area of the Performance preferences dialog (Preferences > ...
Read more >How To Fix the Most Common Angular Performance Problems ...
Now you want to identify the biggest performance problems in the application. This could be a slow page load, laggy user experience, unresponsiveness,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Even without the debugger it’s lagging on Android.
You can stop Remote JS Debug for test