If I’m using the Container Component, how would I go on about using the react-native-router-flux with this?
9 thoughts on “How would I use react-native-router-flux with this?”
Comments are closed.
If I’m using the Container Component, how would I go on about using the react-native-router-flux with this?
9 thoughts on “How would I use react-native-router-flux with this?”
-
Yes, we are infact using that router for one of our projects. What we are doing is, we have a Router component at the root of our project. We define the scenes/routes in our router and for that, we don’t need the Container component. We only use the container where we define our views, not the routes.
-
Hi,
I think providing a concrete example, or a “full app” working with react-native-router-flux & NativeBase could be great for this project! This will make easier to new people to jump in.
-
Yes, that is actually on our to-do list. A full boilerplate app with native-base, react-native-router-flux and redux
-
I don’t understand how this uses
react-native-router-flux
? I don’t see it anywhere in that example. -
@tarr11 Did you ever find a way to use RNRF with nativebase, and handle the header nicely?
Thanks
-
I’m waiting to switch to the new official navigation system once it is released, but in the mean time I am wrapping my scenes in a container, and then adding sceneStyle={{ paddingTop: … }} to my Router, with different values for android and iOS.
So each of my scenes looks like:<Container> <Content> ... </Content> <Footer> ... </Footer> </Container>
As far as I can tell it works nicely, but I haven’t tried it with too many devices, just my iPhone 7 Plus.
-
Simple application at https://github.com/vijaychouhan-rails/AllInOne
Comments are closed.
The component should be nested inside the component.
Yes, we are infact using that router for one of our projects. What we are doing is, we have a Router component at the root of our project. We define the scenes/routes in our router and for that, we don’t need the Container component. We only use the container where we define our views, not the routes.
Hi,
I think providing a concrete example, or a “full app” working with react-native-router-flux & NativeBase could be great for this project! This will make easier to new people to jump in.
Yes, that is actually on our to-do list. A full boilerplate app with native-base, react-native-router-flux and redux
@vinaydate @Crash– The boilerplate with NativeBase, Redux is live.
Native-Starter-Kit
I don’t understand how this uses
react-native-router-flux
? I don’t see it anywhere in that example.@tarr11 Did you ever find a way to use RNRF with nativebase, and handle the header nicely?
Thanks
I’m waiting to switch to the new official navigation system once it is released, but in the mean time I am wrapping my scenes in a container, and then adding sceneStyle={{ paddingTop: … }} to my Router, with different values for android and iOS.
So each of my scenes looks like:
As far as I can tell it works nicely, but I haven’t tried it with too many devices, just my iPhone 7 Plus.
Simple application at https://github.com/vijaychouhan-rails/AllInOne