-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack Navigator #73
Comments
Hi @nephix If you disable the StackNavigator header, does it work as expected? It appears that the dropdown alert is a child of StackNavigator, is that correct? There are |
Hi testshallpass, yes the dropdown alert is within the StackNavigator. I tried to workaround that with startDelta and endDelta but I was not able to render the dropdown "above" of the StackNavigator's header. I worked around this by hiding the StackNavigator's header just before displaying the dropdown alert |
Hi @nephix I was able to reproduce. It appears that react-navigation wraps it's contents in like a container. I reported to react-navigation to get some assistance: react-navigation/react-navigation#2423 |
+1 |
1 similar comment
+1 |
This problem is happening to me as well. @testshallpass your issue on react-navigation was closed without any response, is there any workaround in this issue? |
@slpereira I'm looking into workaround or solution. |
@testshallpass @slpereira @nephix Actually the solution is pretty straightforward. You need to place the I do it like this:
Here
Hope this helps. :) |
Thanks a lot @szantogab! |
Thanks @szantogab Do you mind if I create a gist from your example and link it on README? |
@testshallpass Of course not. Go ahead! :) |
@szantogab that worked! Thanks so much! |
with router flux i cant do your fix because i have this as my start `
` can u help me ? i have the same issue |
@szantogab Your really helped me with redux + router flux ... i used the same method
And it works perfectly |
@szantogab great way to make it available on every component. But how can I trigger |
@maharjanaman If you use |
@szantogab I'm try to show alert as soon as screen loads i.e. on |
@szantogab can you show more to control the onClose property in other component, feel like:
And in my DropDownHoler:
In my component, i tried but seem like it didn't work with onClose
|
Thanks @szantogab |
@xmannv my variant with typescript types
so I just call |
Added documentation to README with gists examples to help with StackNavigator. PR update readme with caveats #147 |
how do you access the dropdown holder from another component ? @szantogab |
+1 |
@abdul-elah-js |
You just need to pass the ref to other components.
|
hi, may I know did you put DropDownHolder as a component ?
|
Issue Description
When I use StackNavigator with enabled header, the react-native-dropdownalert is displayed below the header and not at the top of the screen.
Steps to Reproduce / Code Snippets
Expected Results
There should be a prop for the drop down alert to overlay above the header.
Additional Information
The text was updated successfully, but these errors were encountered: