Hide keyboard in react-native

If I tap onto a textinput, I want to be able to tap somewhere else in order to dismiss the keyboard again (not the return key though). I haven't found the slightest piece of information concerning...

Does React Native styles support gradients?

I see that someone made this for it: https://github.com/brentvatne/react-native-linear-gradient But is there support for it in RN itself? Something like style = StyleSheet.create({ ...

React Native : Unexpected view type nested under text node

I've got this error on Android. Just in case, I use react-native-maps. Do you know what is it from?

React-Native number formatting

I'm currently using the react-native-globalize library to format numbers but when using: <FormattedNumber value={10000000} useGrouping={true} /> Which is supposed to present a result like...

React native ERROR Packager can't listen on port 8081

When I run command react-native start, it shows Packager can't listen on port 8081. I know the issue is about software using my port 8081 . I use Resource Monitor to see the port, but I can't find...

react-native: how to run an app on emulator in offline mode?

When I switch my emulator of Android to Airplane Mode, the app i'm developing crashes because it needs the development server. I'm in need to test offline behaviour for my app, so I ask you how to...

Do async call before rendering data in react native

My Asyc call is running after the data is rendered I tried running my Asyc call inside constructor and even inside componentDidMount but nothing worked. My db structure.. My query in jsx...

React Native adding splash screen in cold start of Android App

I am trying to add splash screen to my react native android app but its giving me weird behaviour whenever I get a (remote/local) notification and on click to the notification component mounting...

React Navigation how to hide tabbar from inside stack navigation

I have the following stack navigation and screens: export const HomeStack = createStackNavigator({ Home: HomeScreen, Categories: CategoriesScreen, Products: ProductsScreen, ...

React navigation hide one tab

I'm using react-navigation for navigating between screens. Is it possible to have createBottomTabNavigator with 3 tabs, but when you show tab bar, I want to have visible only 2 tabs instead of 3. ?

TypeError: Invalid attempt to spread non-iterable instance

After compiling to android and downloading via Store I get the error: "TypeError: Invalid attempt to spread non-iterable instance" But using "react-native run-android" creates no error message...

expo is out of date uninstall and run again to upgrade

when running my app on ios simulator, I am getting the following error This version of the Expo app is out of date. Uninstall the app and run again to upgrade. Here is how I tried to upgrade...

React Native 'firebase.messaging().getToken()' is not called from 'RNFirebaseMessaging.java' class android in release apk

I am using react-native-firebase library for Firebase push-notifications in React native from Android Platfrom. My code works perfect in debug apk but when i export my apk into release mode then...

GraphQL - Apollo Client without using hooks?

I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be...

In a react-native android project,How to copy a folder from assets to the DocumentDirectoryPath?

I am using a react-native project in which,I want to copy the contents of a certain folder in assets inside android to RNFS.DocumentDirectoryPath. How can this be performed? I have used the...

Task 'installDebug' not found in project ':app' - run-android after creating project

After creating a react native project, I tried to run it on my android device. I enter adb devices into the terminal, I saw my device. I ran react-native run-android. And after a while Task...

TypeError: firebase.default.messaging is not a function (in '_firebase.default.messaging()','firebase.default.messaging is undefined)

I want to send notifications using firebase cloud functions so I am trying to get a token using firebase.messaging().getToken() but I keep getting the error: TypeError: firebase.default.messaging...

React-native node.js showing Error: Multipart: Boundary not found while uploading image using react-native-image-picker

While Uploading image , It is showing Error: Multipart: Boundary not found on node js server console here is my react native code const createFormData = async (photo, body) => { const data =...

Get the previous screen name in react native

I am using React Navigation v5 in my react-native project. My screens are hosted by stack navigator: const MyFlow = ({route, navigation}) => { const MyStack = createStackNavigator(); //...

React Native: Stack Navigator mode='card' or mode='modal' is not working (expo project)

Neither mode="card" or mode="modal" is working while Stack Navigating. Tested in OnePlus 5T and Android Studio(Google Pixel) On Android and IOS, default Stack Navigator mode is "card", but when...

Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

I am new in react native development. I am using new MacBook Air (M1, 2020) with M1 chip. I have Installed the dependency below: Node = v14.15.3 Npm = 6.14.9 Homebrew = 2.7.0 react-native-cli:...

CocoaPods could not find compatible versions for pod "lottie-ios"

i can't install react-native-lottie throwing error compatatible version for lottie-react-native CocoaPods could not find compatible versions for pod "lottie-ios"

react-native-video mutes the microphone

When a video is played during a webRTC call it causes the local stream to go mute without muting the track (audio track still has the enabled prop set to true). It does not happen when the 'muted'...

Invariant Violation: requireNativeComponent: "RNSScreen" was not found in the UIManager

I am getting RNSScreen error even though I have installed all related packages and followed react-navigation guide (https://reactnavigation.org/docs/getting-started#installation) but nothing...

React Native - GoogleSignIn - refreshToken, idToken, accessTokenExpirationDate are all null

I am trying to use expo-google-sign-in in my project. I am able to login with GoogleSignIn.signInAsync() but in the object I get back as a result the refreshToken, idToken and...

React Native Expo app crashing on android apk file when ask location permission

I have problem with expo standalone app. the problem is with the ask permissions for locations. in the development mode, app asks for location permissions and works well. there is no bugs. after...

react native facebook login using expo client: The App_id in the input_token did not match the Viewing App

I am using expo-facebook to integrate a Facebook login using expo and firebase. Everything looks to be working and I log into Facebook but get an OAuthException once I authenticate using Facebook...

Android 11 for react native?

I have added a Git link below for some context, specially ggerminiani's answer. https://github.com/stripe/stripe-react-native/issues/530 Apparently I need Android 11 for Stripe react-native SDK to...

React Native Sound Error: Argument 1 (RCTResponseSenderBlock) of RNSound.play must not be null

As far as I can tell I am loading the correct resource. However when I try to play the sound using React Native Sound I am still getting the following error: Argument 1 (RCTResponseSenderBlock) of...

Error: verifier._reset is not a function. when trying to Sign in with phone using firebase, react native and Expo

I am trying to implement Phone Sign In in mu react native app, but I am getting the following error: verifier._reset is not a function. (In 'verifier._reset()', 'verifier._reset' is undefined) at...