Category "react-native"

Group notifications with Expo

I have a react native messaging app done with Expo. I got notifications to work, but the problem is that each message is a separate notification. I would like

TypeError: undefined is not an object (evaluating 'navigator.serviceWorker.addEventListener')

I want to use Firebase Cloud Messaging to send notifications to the users, but I am getting this error when I try to setup messageing: TypeError: undefined is

Showing a view on top another view

I am using react-native-image-crop-picker to allow users to crop an image when selecting it. Is it possible to show, during the cropping screen, a view on top o

Error for expo-cli when installing with Node 18

I am trying to install expo-cli and there appears to be an error related to the node version. Is there a way to install it without installing Node 16? I have e

How to fix 'ReactCommon/CallInvoker.h file not found' after manual upgrade from v0.61.5 to v0.63.3

I had to manually upgrade react-native, because nix react-native upgrade failed. After following the Upgrade Helper for v.0.61.5 -> v0.63.3, ive cleaned my b

getting a payment failed unexpected error in razorpay in react native ios and android

I am integrating a razorpay payment gateway in my react native app . whenever I'm trying to open a razorpay checkout UI its first open a pop up with a loader an

A problem occurred configuring project ':react-native-screens'. > compileSdkVersion is not specified

I am getting this error while getting starting with react-navigation and doing practicle

Why does the layout of react native ios app goes weird?

Sometimes the react native app in ios destroys the layout as shown in the images below. Reproduction: Put the app in background and do not open for at least a d

How to fix java.lang.Double cannot be cast to java.lang.String in React Native

I have problem regarding on my AsyncStorage.getItem. I have module which is the login, where I need to set the item inside the storage, after I get the result t

TextInput start from right to left, React native

I have a TextInput like in the image, when the text too long, it starts from right to left although I added CSS textAlign: 'left' but it does not work. It happe

React Native - TypeError: n.createContext is not a function. (In 'n.createContext(o.default)', 'n.createContext' is undefined)

I'm trying to implement React Native into an existing Android application. I follow the steps in the official documentation and I have ended with the following

How to do Refresh in React Native ScrollView with refreshControl?

Now I would like to pull down a scrollView and refresh this component, so I have followed the official document mentioning onRefresh and RefreshContorol from r

the home button in the drawer is not working but the one on the bottom tab is working well

This is the App.js when I change the home name in the navigator it works well <Drawer.Navigator drawerContent={props => <DrawerContent {...props} /

Detox get length of element

Hi i'm using detox and i would like to know how can I get the number of matches to one element(length). For example "card" match three times, how can I get the

React Native HTML - rendering a linear background gradient

I’m currently HTML overflowing height: 300 a box, where React Native HTML is used. (this package: https://www.npmjs.com/package/react-native-render-html)

How do i prevent the keyboard from pushing my view up in react native?

I am building a registration form in React Native. I have this view. When keyboard is showing it is pushing my form and image over my title view like this. Wh

How do i prevent the keyboard from pushing my view up in react native?

I am building a registration form in React Native. I have this view. When keyboard is showing it is pushing my form and image over my title view like this. Wh

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`, I've added an avg in android studio manually also

I'm new to react native and trying to install it and facing this problems, I've tried many fixes but they don't work. full error- npx react-native run-android

Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError) React native IOS on pod install

Hi I'm trying to run my react native app on mac mini. I can run another app also this app to but when i write pod install in terminal it gives this error. 1: fr

Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release

react-native run-android command terminates by leaving a message in android simulator. The message is as follows: Unable to load script.Make sure you are eithe