Comments (6)
@tnguyen42 I think by mistake you filed an issue in a wrong repo. Probably, you wanted to post on react-native-nabar instead, (I might be wrong though)
For answering your problem, I have couple of thoughts,
First, are you passing navigator
object as prop to your component inside rednerScene
method?
Second, To me react-native-navbar is just helper Component to customize the navbar, make sure that you are targeting React Native's Navigator
object. You might add the ref to your NavigationBar
and trying to execute methods there.
from react-native-side-menu.
Hi,
Thanks for your answer, but I'm actually talking about the side-menu, Usage Example. In it, it seems there's not Navigator component, which I find weird, considering navigator.push is being called.
Am I supposed to replace by a Navigator? Or am I supposed to wrap the rendered SideMenu under a Navigator through the renderScene method?
Thanks for your time!
from react-native-side-menu.
Oh I see, This is just an example of how you can pass navigator
or any other props to menu to interact with your app. You do not need that!
So now my question is, do you want to use Navigator
component as your Side menu's content?
from react-native-side-menu.
For now I don't, but I plan to use a Navigator as my main content and then, navigate thanks to this side-menu.
So I'm wondering what the best pratice should be: replace the ContentView component (from the example) by a Navigator which renders some content like this:
<Navigator initialRoute, renderScene, etc>
Or wrap everything, including the SideMenu, in a Navigator.
The first one seems more intuitive to me since I don't want the SideMenu to reload everytime...
Cheers!
from react-native-side-menu.
Your component looks very good rt2zz, I'm gonna try it, thanks!
from react-native-side-menu.
I think it's worth to make a component which will aggregate navbar, side-menu and describe relations between :)
from react-native-side-menu.
Related Issues (20)
- OpenMenuOffset not working in production.
- Where did the Menu tags come from? HOT 2
- Hardware Back closes App on every scene in side menu
- Sample code does not work HOT 1
- Shadow/Elevation possibility feature request HOT 1
- undefined is not a function (near '..._react2.default.createClass...') Why am i getting this error ?
- TypeError Undefined is not a function (evaluating _firebase.default.initialize app) HOT 1
- SideMenu is visible below the component it is rendered on HOT 6
- 1 to 2 second delay when toggling menu HOT 3
- Crash on iOS when app built in release, works in debug HOT 3
- Is react-native-web supported? HOT 2
- All API props are not available in v1.1.3
- autoClosing prop does not work
- Use native driver for the animation HOT 4
- Side Menu stuck on android device, i can not click any where. it always appear at the left side of the screen and ovellaping the main screen content HOT 1
- Change style overlay
- componentWillMount has been renamed, and is not recommended for use HOT 1
- align problem when phone language is Arabic HOT 3
- Can we get a new release please? HOT 15
- Warnings HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-side-menu.