react-native-tab-view icon indicating copy to clipboard operation
react-native-tab-view copied to clipboard

how can i show loading indicator ?

Open mstf0ta-app opened this issue 8 years ago • 2 comments

hello guys,, i tried to view while the scenes is render to avoid white page that appear

now i used _renderScene = ({ route }) => {

switch (route.key) { case 'main': return

; break; case 'amounts': return ; break; case 'movements': return ; break;

default: return null; }}; but it is delayed too how can i solve that please ? thanks,,

mstf0ta-app avatar Apr 20 '18 11:04 mstf0ta-app

On will mount, Create a loading scene first, if you have 3 scene, create 3 loading scene, save it to your class state.

On render, load the scene, and implement state loading scene.

On did mount, call your _renderScene with your stuff, Ajax, fetch, redux or whatever and overide scene state

never00miss avatar May 21 '18 19:05 never00miss

Hey, I just released a new alpha 2.0.0-alpha.0 of the library. It's rewritten using react-native-gesture-handler and react-native-reanimated addresses a many platform specific bugs and performance problems. The documentation is updated as well.

Please try the new version and see if it addresses your issue. If not, please open a new issue following the issue template.

satya164 avatar Feb 19 '19 22:02 satya164