React-native-router-flux: Painfully slow on iPhone 6, Android, (fast on iPhone 7)

Created on 11 Jan 2017  ·  3Comments  ·  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

"react-native-router-flux": "^3.37.0",
"react-native": "0.37.0",

App runs great, fast and smooth on iPhone 7, iPhone 7 Plus iOS 10.2, as well as Samsung Galaxy S7.

However on iPhone 6 it takes about 4-7 seconds for transitions...

No console.log anywhere.

Any suggestions?

Most helpful comment

try doing expensive js operations in here:

componentDidMount() {
InteractionManager.runAfterInteractions(() => {
// expensive js -here-
})
}

All 3 comments

try doing expensive js operations in here:

componentDidMount() {
InteractionManager.runAfterInteractions(() => {
// expensive js -here-
})
}

@salincakli

Moving some network requests to InteractionManager.runAfterInteractions seemed to help a bit, but not enough.

Any more things I could try?

I would also like to mention that this delay seems to happen BEFORE the transition. It's like you click a view to change scenes... 2.5 seconds later... THEN you see the transition. Driving me nuts!

I have the same issue with Samsung Galaxy S7 ! It works perfectly on Iphone by the way

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VictorK1902 picture VictorK1902  ·  3Comments

basdvries picture basdvries  ·  3Comments

xnog picture xnog  ·  3Comments

moaxaca picture moaxaca  ·  3Comments

luco picture luco  ·  3Comments