I've tried running the code from this answer, and get the following (after pressing 'Plot':
Here's what I find unexpected: if I press the 'pan axes' button in the navigation bar (highlighted in blue in the above screenshot), move the figure slightly to the right, and then press the 'home button' in the navigation bar, then nothing happens.
However, if then move the figure again and then press the 'home button' again, then it returns me to the position I got to after I moved the figure once.
How can I set the navigation bar up so that the 'home' button returns me to the original plot every time?
Related
I have two problems that seem to be related. I'm using a MaterialTopTabNavigator with tabBarScrollEnabled. It works fine when I initially have my screens under it. But in my final screen I have a button that marks the flow "complete", which should update the top tab navigator to not list the previous tabs. That part all works surprisingly well, but I'm running into 2 issues on iOS (possibly android as well, but I only have a simulator for that and it appears to work correctly there). The first is that after clicking the complete button it drops to the proper single tab at the top, but it still allows scroll to the left, which then throws an exception that "undefined is not an object (evaluating 'state.routes[index].name')". The second is that if I click complete, and then click it again to mark it incomplete again the Screen stays on the "Final" screen, but the Top Tab Navigator shows that it is in on the first screen, and if I scroll left it pops the same "undefined is not an object (evaluating 'state.routes[index].name').
I've attempted to reduce the issue to the following snack:
https://snack.expo.dev/#linkeddg/materialtoptabnavigator-issue?platform=ios
In react-native-tab-view, I want to add 2 buttons at bottom (Previous and Next) On clicking on Previous/Next button the Tab bar get change. Please help me, how I can achieve this. I tried by getting index value of tab but is doesn't work.
I use this code snippet:
enter link description here
The problem is, the button has no effect when I tap a little bit at the top it press only when I my finger is in the middle of the black line or under, I hope you understand me. So if I press the button sometimes it effects sometimes not, if I tap every time at the bottom on the button then it works, but not at the top. How can I make correctly pressable that it works ? its only press when I am at the between on the svg (navigation height)
as showed above, focus on the TextInput, then click elsewhere.
The first click on green area is of effect.
The first click on red area is of no effect ( it's a ListView ). The same thing happens on the first click of hardware back button on Android when previously focusing on TextInput.
Is it a bug or that I omit something ? ( the version of react-native I use is 0.16.0-rc )
Add keyboardShouldPersistTaps={true} on the ListView and it works
In iOS6 we had a navigation bar with a "back button, Search box and a button the right of search leading to the next page.
in iOS7 we lost the button to the right of search.
Can anyone please help me, I'm unable to figure out what to do.