Category "react-native"

React Native Teleport components without loosing state

I am using React Native 0.62 with react-native-video. I need to add a video player with full screen option. The requirements specifically needs custom controls

Using a function on stylesheet typescript react native

I try to use some variables inside my StyleSheet file. The UI is working fine. But the type is error. Any idea how to solve this? type buttonStyle = (height: nu

How to logout from facebook with LoginManager provided by react-native-fbsdk?

In simple, how does one log out with LoginManager provided by react-native-fbsdk? If we look the code inside that LoginManager provided by react-native-fbsdk,

Invariant Violation: "main" has not been registered

New to React Native: I started a brand new project with Expo init and then I followed the instructions mentioned inhttps://reactnavigation.org/docs/hello-react

React Native: Error: Package name not found

After integrating RN into an existing Android project, I get the following error: Error: Package name not found in /home/.../AndroidManifest.xml at Object.pr

Reanimated,Tinder swipe clone : how can I get the initial user information before swiping the cards?

I got stuck here , I am using the third library : yarn add 'react-native-reanimated' And I am tried to make a tinder clone swiping cards as below: In my case ,

How to multiple TextInput handle with single handler?

I have create common class for TextInput and use it multiple time but its event handle with same method. i want to handle array data after filled the data in te

React native modal vs react-navigation modal, which is more performant?

As of now, I am using React native modal right now. My modal contains some lightweight animation inside it. Now some questions are poking for a while. Should I

expo run:android is stuck at blank white screen

As seen in the above image, after successfully building for android, the standalone app is installed on the device but when opened, before showing the Splash s

How to prevent VS Code auto importing from 'react-native-web'?

When I type View, I expect VS Code to automatically import { View } from 'react-native'; but what is does is import { View } from 'react-native-web';. The probl

Warning: React does not recognize the `secondaryFill` prop on a DOM element

My code in App.js import * as React from 'react' import { View } from 'react-native' import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome' im

Detox issue on React Native Expo project

When I try to run my E2E test using Detox on my expo project, I got an unknown issue. I have a Input component (@ui-ketten/component) and it's testId is SignUpE

How do you remove/hide the ignore button code-push react-native?

I am new to using code-push for react native app, Everything works okay however I want to hide the Ignore button in the dialog. I dont want the user to ignore a

React Native - How to switch between views efficiently?

I have a couple of Views that render an entire page and I want to switch between them. I could use a screen for each view and navigate between screens but that

Azure AD B2C with React Native Expo

I am new to mobile app development with react-native and expo. I'm trying to add authentication/authorization in my mobile app with Azure AD B2C but I find it m

KeyboardAvoidingViev not working on iOS with react navigation header and material bottom tabs?

You find a minimal repo here and a minimal snack available here. They both show the issue nicely with very minimal code. I found lots of questions online about

How to Check if Axios Call Fails due to No Internet Connection?

I'm trying to figure out an accurate way to detect axios call failure due to no internet connection. Does axios call failure return a specific response object

Clear React Native TextInput

Working through the Redux AddTodo example in React Native. The first AddTodo example below uses state to store the TextInput value and works fine. class AddTod

How to toggle react-navigation if there is two drawer?

I have spent most of the time trying to find out how to toggle right Drawer with react-navigation Ref? currently, it toggles only with left drawer navigationRef

React Native on Android: Cannot run program "node": error=2, No such file or directory

EDIT: I am uncertain which steps I took to resolve this problem, and am no longer seeing this error message so I cannot test the solutions below. Please try the