Category "react-native"

React Native: Phone won't go to sleep while app is open

I'm trying to test some behavior in my React Native app when the phone goes to sleep, but the phone won't sleep when the app is open. I have the auto-lock set t

Modifying back button with react-navigation on specific screen

Here I'm using react-navigation as my navigation library. How can I change the back button (that is added automatically by react-navigation) functionality for a

Leave screen callback React Navigation Tab Navigator

I have a React Navigation Tab Component like this: const RootNavigator=TabNavigator({ Home:{ screen: Home ,navigationOptions:{ tabBarIcon: ({fo

Trying to import realm, but getting error: Missing Realm constructor. Did you run "pod install"? (I'm using windows)

I'm making a mobile application with react native. I want to use Realm (mongodb). So after running: npm install realm realm was correctly added in the "node_mo

Expo - React Native / Firebase app, APK working different than on Expo go app

I have built an app with Expo & firebase and its working with the expo go app. I ran "expo build:android" and got my APK file. The app loads and my Login an

Google sign in with Firebase 09 : signInWithPopup and signInWithRedirect return an undefined error

Here is the authcontext import and code import {signInWithPopup, GoogleAuthProvider, createUserWithEmailAndPassword, getAuth, onAuthStateChanged, signInWithEmai

How to disable emojis button in react native keyboard?

I need to disable emojis for my react native keyboard app. When my keyboard appear, the emoji icon is visible and i need to make it unavailable to prevent user

Detect Swipe direction using React Native Gesture Handler and Reanimated

We have already developed a swiper using React Native PanResponder, (before somebody comment) - we cannot use any other swiper library here. In the swiper we de

Why is my react-native app terminating in the background while recording (iOS, RN 0.63.3, Expo-Av 9.2.3)

Hello I'm having an issue in my React Native app where audio recordings are sometimes mysteriously terminated while the app is in the background. This happens o

How to have a searchbar in "Select" Component native-base

I would love to have a search bar in "Select" component from the library native-base in react-native. I have tried adding a "TextInput" component inside the "Se

react-query how to call mutate from custom useMutation hook in Jest test

I'm running a React Native project where I'm testing custom hooks written with react-query. I'm using Jest, @testing-library/react-hooks and @testing-library/re

Create a static library with React dependency

I created a library that uses the native navigation controller to navigate through react and native screens. The library is written in Swift and contains some o

Could not find method compile() for arguments [com.android.support:appcompat-v7:25.0.0]

Trying to build a react native project, and cannot compile appcompat Could not find method compile() for arguments [com.android.support:appcompat-v7:25.0.0]

React Native Firestore getting data problem

When I try to access the data from a Firestore collection called 'Targets' it returns: {"_U": 0, "_V": 0, "_W": null, "_X": null} my firestore item is: item pho

Flood Fill Image in React Native (Paint Bucket Tool, Coloring an Image)

Is there a library or something for react native that can manipulate images? I am searching for something which I can use for a flood fill on image in react nat

Errors when running command "npx react-native run-android"

C:\Users\lenovo\Desktop\react-native-cli>cd AwesomeProject C:\Users\lenovo\Desktop\react-native-cli\AwesomeProject>npx react-native run-android info Runni

TypeError: undefined is not an object (evaluating '_reactNativeImagePicker.default.showImagePicker')

Using React Image Picker i am facing this error: TypeError: undefined is not an object (evaluating '_reactNativeImagePicker.default.showImagePicker') This is wh

How to set document title by React Native Web with react-navigation?

My web application is created by React Native Web with react-navigator. react-navigator sets RouteName as document.title in default. ex. <Stack.Navigator scr

.globals is not a valid Plugin property

I want to integrate the QR code scanner feature in my react-native-based applications. so I am installing the react-native-vision-camera package. According to d

Metro has encountered an error: While trying to resolve module '@react-native/normalize-color'

I just wanted to try react-native.However, after run the script "npm run ios",I got this error in the Xcode's simulator. react-native version: v0.66.0, platfor