656 questions
0
votes
0
answers
16
views
how to get @react-navigation/stack current stack depth prgress
Is there any way to know the progress of the current depth?
For example,
If we go from 0 to 1,
0.1, 0.2, 0.3, ..., 1
If we go from 1 to 2,
1.1, 1.2, 1.3, ..., 2
If we go from 2 to 1 again,
1.9, 1.8, 1....
0
votes
0
answers
44
views
React Navigation not redirecting to DrawerNavigator after app restart for one user type but works for another
I’m working on a React Native app with two user flows: Employer and Employee. Both flows are structured similarly:
The user completes an onboarding process.
After onboarding, they are redirected to ...
0
votes
0
answers
56
views
I have error with react-native-safe-area-context the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ign
Task :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: C:..\node_modules\react-native-safe-area-context\...
0
votes
1
answer
45
views
Hide drawer navigation from nested individual stack screen screens
I'm trying to hide/disable the ability to use the drawer navigation menu when viewing a nested stack screen.
I have three separate screens (DataScreen, AircraftScreen, AirportScreen) in a Stack ...
0
votes
0
answers
28
views
Nested stack is not accessible in react-navigation/bottom-tabs
I am currently started working in a react native project which is running in react-native: 0.67.5. In there they have used a lot of packages and some are deprecated. I have changed most of them to new ...
2
votes
1
answer
94
views
React Native Navigation Typescript Typing
I am having issues typing my props in a component that expects parameters. I have read through the documentation and have followed the guides. This is my component that receives parameters.
type ...
0
votes
1
answer
39
views
Stacked React Navigators cause API to be called 2x when component is instantiated
I'm new to React Native and I have an app which uses a stack and tab navigator. The stack navigator is the child navigator of the tab navigator. The problem lies when a screen uses both of them, ...
0
votes
1
answer
81
views
Can I use Stack-Navigation in Modal?
I want to put Stacks into Modal by react-native.
I tried to put stack navigator in Modal, but I can't press pressable element such as TouchableOpacity or Pressable and etc...
ps. If there's no way to ...
1
vote
0
answers
64
views
Mocking @react-navigation/stack GestureHandlerRefContext in Jest
I am using @react-navigation/stack and have Jest tests failing anywhere I am using the GestureHandlerRefContext in a component:
TypeError: (0 , _native.createNavigatorFactory) is not a function
>...
0
votes
0
answers
23
views
Have certain screens still display BottomTabs which might be opened from screens without BottomTabs
My react app has bottom navigation tabs but contains certain screens (ex. chat screen) which takes up the full screen. I would like to have have certain screens that still display the bottom ...
0
votes
1
answer
135
views
Type error with React Navigation's CompositeScreenProps for Nested Navigators
I'm trying to follow this guide for type checking with TypeScript and React Navigation but I'm getting this error anytime I try to navigate to a screen in another tab:
Argument of type '[AppRoutes....
1
vote
1
answer
59
views
WARN Found screens with the same name nested inside one another. Check: Main, Main > Main, Main > Login, Main > Login > Login
import "./global.css";
import { Provider } from "react-redux";
import { useEffect, useRef, useState } from "react";
import { AppStore, makeStore } from "./src/...
3
votes
0
answers
659
views
React native: Drawer on the home page, stack on all other pages
I would like my app to have a drawer on the main page, and stack navigation on all the rest of the pages. I'm planning on setting out pages so that only some will be accessed from the drawer, others ...
0
votes
0
answers
35
views
Loop on back navigation
I have a 3 screens. UserList, UserDetails, UserSummary.( these screens includes goback and continue button. Go back functionality is navigation.goBack() )
Please consider UserList has a 3 member. I am ...
0
votes
0
answers
43
views
React Native - Open Web Page in WebView after read QR Code
Im trying open a specific page in Web View after read a QR Code.
Normally the page is shown, but sometimes the page stay blank with the loading icon and never loads. I need to close the application ...