Tell us which versions you are using:
Need to know way to add loader view to each action , we added screen type as modal.
But its not working
A modal type of screen shud be seen
Also followed
https://github.com/aksonov/react-native-router-flux/blob/master/docs/OTHER_INFO.md
to show Modals , But its not working .
Please help us to show a spinner view using react-native-router flux
Awwn yeah, I had this error many time so I fix it recently using a component with a DefaultRenderer into a main root like:
import { DefaultRenderer} from 'react-native-router-flux';
...
export default class MainView extends Component {
...
render(){
const state = this.props.navigationState;
const children = state.children;
return (
<View style={styles.mainContainer}>
<DefaultRenderer navigationState={children[0]} onNavigate={this.props.onNavigate} />
<Loading ref="loading"></Loading>
<MessageBar ref="alert"/>
</View>
);
}
}
<Router>
<Scene key="root" component={MainView}>
//children routes
</Scene>
</Router>
I hope this will be useful to you. If you have any question only tag me or answer me on twitter @sirgalleto
@sirgalleto this works. Elegant solution. Thanks
YW @sagarparikh
@aksonov I think you should add a default renderer documentation (if is still unexisting).
Most helpful comment
Awwn yeah, I had this error many time so I fix it recently using a component with a
DefaultRendererinto a main root like:MainView.js
Routes.js
I hope this will be useful to you. If you have any question only tag me or answer me on twitter @sirgalleto