729 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
18
views
Android Back Button Exits Stack in React Navigation When Using Native SDK Screen
I'm building a React Native app using @react-navigation/native with a bottom tab navigator setup. Each tab renders a stack navigator:
HomeStack
SettingStack
SdkStack ← this one embeds a native SDK
...
0
votes
1
answer
914
views
How can I insert a button in the tab bar of my React Native app that does not navigate to any screen but instead triggers a custom function?
In my React Native application using Expo, I have a tab bar with multiple screens. I want to add a button in the middle of the tab bar that doesn't navigate to any screen but instead triggers a custom ...
-1
votes
1
answer
59
views
Screen inside Stack.Navigator not visible in React-Native
I am new to React-Native, i am trying to use Navigation for 2 screens, when i add my LoginScreen & RegisterScreen inside Stack.Navigator, my screens are not visible, it shows blank screen, if i ...
0
votes
1
answer
35
views
Moving to a screen in a nested navigator React Navigation v5
Context
I saw lots of similar questions but no one was a valid answer to my problem.
This is my navigator structure:
MainNavigator (mode="modal", headerMode="none")
- TabNavigator
...
0
votes
1
answer
840
views
Property 'Navigator' doesn't exist Error: React Native app
Whenever I run my app through snack I keep getting this error: React Hook useEffect has an unnecessary dependency: Navigator. Either exclude it or remove the dependency array. Outer scope values like '...
1
vote
0
answers
256
views
Expo not listener to navigate specific screen when app was killed
I had a problem when my app was killed (closed) and I received a notification, I clicked on that and wanted to navigate to some specific screen. I am using expo sdk 49 and expo-notification. I read ...
-1
votes
1
answer
340
views
how to solve "Unable to resolve "@react-navigation/native-stack" from "App.js""
I am new to react-native. I was running the programing but this problem kept coming.
I tried looking the solution all over the internet. Installed the react-navigation, react-navigation/native, react-...
0
votes
0
answers
64
views
Hide "Navigate up" when pressing back button with react-navigation / react-native-screens
how do i hide the "Navigate up" from the back button when using react-navigation?
It happens when i keep the back button pressed.
Navigate up Image
"@react-navigation/native": &...
1
vote
1
answer
2k
views
React Navigation - initial prop when opening via deeplink url
As stated in the react-navigation V5.x docs: "If you need to render the initial route specified in the navigator, you can disable the behaviour of using the specified screen as the initial screen ...
0
votes
1
answer
904
views
Adding types for useTheme from @react-navigation/native
I'm tyring to set types for useTheme() from @react-navigation/native. I have setted a theme type before for styled-components, but I can't find a way to set the theme type for react navigation theme.
...
0
votes
1
answer
34
views
Invariant Violation: View config getter callback for component `RecentExpenses` must be a function (received `undefined`)
here i am getting error of improper import of the header file but i had imported it correctly can someone help me to figure it out where i had gone wrong in it. I am generally making an expense ...
1
vote
0
answers
225
views
React Navigation upgrade v4 to v6 - navigationOptions and listener
Previously with React Navigation v4, I have use route.params.scrollToTop() to pass the function I want to call when tabBarOnPress. The function content is not related to scrollToTop. After upgrading ...
0
votes
1
answer
1k
views
Hide Custom Tab Bar On A Specific Screen In React Navigation 6
I am writing a react native app with react-navigation 6 that has a custom tab navigation, inside of which I have multiple stacks for each tab.
Custom Bottom Tab with Stacks as Tabs:
<Tab.Navigator ...
3
votes
3
answers
647
views
React navigation 6 - navigating from one stack A to stack screen B - why screen B wont call useEffect (but renders)?
I have a nested tabs navigator inside a stack navigator.
When I navigate from Tab Screen A to Stack Screen B, B's useEffect is called, all good.
When I navigate from Stack Screen C to also Stack ...
user avatar
user6377312
0
votes
1
answer
2k
views
Dynamically change Tab in Material Top Tab navigator
I have a bottom tab navigator with 2 Tabs. On 2nd Tab, I have a Material Top Tab navigator with 3 tabs.From Tab1's Screen of bottom Tab, I want to switch to 2nd Bottom Tab's Screen and also move to ...