question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open modal performance is slow for Android

See original GitHub issue

Just 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:open
  • Created 6 years ago
  • Reactions:5
  • Comments:24

github_iconTop GitHub Comments

22reactions
Sebastian-Neubertcommented, Jan 28, 2018

Even without the debugger it’s lagging on Android.

21reactions
stockcodecommented, Jul 12, 2017

You can stop Remote JS Debug for test

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found