Slide-out vertical nav in UIExplorer example? - react-native

I'm interested in using a slide-out vertical navigation in an app using react-native. Is there a trick to this, or is it just a matter of creating a View and adding CSS that makes it respond to a button-tap or a swipe motion?
I've gone through the UIExplorer example in the Github repo, and did not see this style of navigation within it. I am new to react (and react-native, of course). I'm not having trouble with the tutorials I've gone through, just curious if there's a "React Way" to do this, or if I ought to just hack along until I get something working. Thanks.

I work on the <Navigator> component for React Native, and I think it might fit your needs.
Check out the documentation here: http://facebook.github.io/react-native/docs/navigator.html
And the example code in UIExplorer: https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/Navigator/NavigatorExample.js
The navigator is still a work in progress, so feedback is welcome! (you can file an issue on Github and tag me, #ericvicenti)

Related

React native ScrollView effect like youtube's one

I'm trying to get an effect like youtube's one in the ScrollView of my react native app.
I don't really know how to search for this, so if anyone knows of a package or a video tutorial that could help me, I would really appreciate it.
That's a short video showing the effect I've said, but I believe it is present in all Youtube apps.
Basically, it shows you the header when you drag it up from anywhere on the screen.

React Native navigate

So I saw a lot of tutorials with "build in" (React Navigation) components and tools like Bottom Tab bar, etc.! But even if it sounds weird I want to make everything on my own.
I do not want weird navigation with a header and than I can swipe to the side and it all looks native, etc.! I want to have like an <a></a> tag to navigate around. So I think in Html it would look like this:
Home
Is there any chance to get this working in React Native? It's not a problem for me to use librarys for helping to navigate but e.g. with React Navigation it all looks so Native - and I do not want this! :) Maybe anybody can help me with my issue? :D
Henrik, I would suggest you using the createBottomTabNavigator from React Navigation, you can read more here reactnavigation.org/docs/bottom-tab-navigator

How can I create gesture based transitions with react navigation?

I've tried searching everywhere but the only thing I can find that is remotely similar to what I want to do is the PanResponder. However, with PanResponder I will have to make custom headers which I am not sure is the right way of doing this.
To be specific, I want to add the ability for the user to swipe to transition to a new screen/route in a Stack Navigator.
If it can't be done, then I'd like to know if making a custom header is ok?
Thanks a lot!

Can i create animated resize content as in react native docs

I want to create the same animation content but I don't know how to do this. Using just KeyboardAvoidingView don't do that effect
https://facebook.github.io/react-native/docs/keyboardavoidingview.html
It's not exactly component you want to animate. But this article could help you.
You'll find the GitHub repository there.
Don't miss to check official doc for animations.

REACT NATIVE: Modal temporary closes (flickers) when app is minimized by Menu Button

Using the react native's official Modal component
Is there any way to prevent the behavior when the modal is open, if i press the menu button of the mobile (built-in one) the modal flickers and closes temporary exposing the background view. Please see the attached url of the GIF for clarification . I am also not sure whether its a default behavior in react native or not.
https://imgur.com/LeTtNj5
Thanks in advance
This isn't so much a solution as much as it's guidance. You haven't really given enough detail to help you out properly. Best if you can share the code or setup a reduced test case at https://snack.expo.io that we can fiddle with.
That said, I'm not totally sure. This is an interesting problem, and I'm curious if you'll find a possible solution and it may depend on your implementation details. For instance, is the modal part of the navigation stack (react-navigation?) or is it an imported component? Either way, I would begin by playing with componentWillUnmount. Does it get called? If so, perhaps you can insert some black magic there to minimize the effect, but you'd first need to isolate what specifically is going on before you can hope to solve it.