8,548 questions
Tooling
0
votes
1
replies
47
views
How can I implement real-time collaborative editing for code snippets in a React Native app?
I'm building a mobile app where users can share code snippets and debug them collaboratively in real time.
I want multiple users to edit the same snippet simultaneously.
I'm using :
-React native and ...
0
votes
0
answers
135
views
Cannot read property 'Host' of undefined when using createNativeBottomTabNavigator
When using createNativeBottomTabNavigator to create bottom tabs with Liquid Glass style I get this error:
ERROR [TypeError: Cannot read property 'Host' of undefined]
[React] { [TypeError: Cannot ...
3
votes
1
answer
97
views
React Native inactive screen still re-rendering — performance impact?
I’m using React Native with React Navigation.
When I navigate from Screen A to Screen B, Screen A is no longer visible, but it still re-renders when some state changes.
I understand that screens are ...
Best practices
0
votes
0
replies
33
views
How to structure React Navigation stacks for this bottom tab scenario
My application has a logging screen (or multiple screens for when unauthorised, in the future).
After logging in, you are presented with the Home screen. From there, you can access all other ...
0
votes
1
answer
56
views
accessibilityState is undefined in tabBarButton after upgrading React Navigation Bottom Tabs
I am using the accessibilityState.selected parameter inside a custom tabBarButton to determine whether a bottom tab is focused, so I can update the background color of the tab icon accordingly.
This ...
Advice
0
votes
0
replies
58
views
Expo Router: Is there a way to specify swipe direction when navigating to a new screen
I want to be able to navigate to a new screen that is not yet in the history stack while still having it appear as if the screen is being navigated back to (i.e. swiping from left to right) the way it ...
0
votes
0
answers
38
views
How do I set a global background color for consistency during navigation with expo-router
I have 2 screens, each with a dark background. When I navigate to and fro ( using expo-router ), as the animation swipes the page out I can see the background is white.
I have seen some similar ...
1
vote
1
answer
131
views
Infer params type from prop value
I have a message component that looks like this:
type MessageProps<
ParamList extends Record<string, any>,
K extends keyof ParamList
> = {
navTo: K;
title: string;
desc:...
0
votes
1
answer
143
views
React Navigation headerLargeTitle text disappears when using headerStyle to set background color
Issue getting React Navigation header to show correctly. I would like to set headerLargeTitle to true and when I do so I can see the large header in my page. however if I want to change the header ...
3
votes
0
answers
120
views
MaterialTopTabs swipe gestures blocked by nested FlatList on Android
I am working on a React Native application with a specific navigation structure that involves a chat screen nested inside multiple navigators. The root is a MaterialTopTabNavigator, which contains a ...
1
vote
0
answers
66
views
How to remove gaps between the header containers in react navigation?
I'm using expo-router, but the configuration is from react navigation.
When customizing the header with headerLeftContainerStyle, headerRightContainerStyle and headerTitleContainerStyle, I would like ...
1
vote
0
answers
71
views
TextInput padding/scroll state persists after navigation or note change (dynamic padding not resetting)
I’m building a note-taking app in React Native (see code below) where each note’s content is displayed in a multiline, non-editable TextInput. The paddingTop of the TextInput is dynamically set based ...
0
votes
3
answers
206
views
React Native Deep Linking - Multiple Paths for single screen
I’m trying to handle multiple deep link paths that should open the same screen in my React Navigation setup.
For example, both of these URLs should open the same ChallengesScreen:
mydomain.com/...
0
votes
0
answers
122
views
Detect device Border Radius in React-Native
I have noticed that many modern React-Native apps have a border radius for some of their screens (only noticeable when navigating). I am using react-navigation/native and know that I can set the ...
0
votes
0
answers
56
views
Ionic/React app params from <Link> works in web browser, but the receiving page gets the params as "undefined" in the emulator
In the Ionic/React app, the param passed by page A using component got picked up in page B, but only when running in web browser. In the emulator the param value is "undefined".
But If I ...