Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow

Cannot find getReactNativePersistence when using Firebase Auth with...

I'm developing a React Native app using Expo and trying to persist Firebase Auth state across sessions with AsyncStorage.Here is my firebaseConfig.ts file:import { initializeApp } from...

View Article


How can I fix a expo-cli error? I have been unable to start my project

I'm trying to start my project, but I keep gettingAssertionError [ERR_ASSERTION]: Unexpected: Config _internal.projectRoot isn't defined by expo-cli, this is a bugI have tried to remove and install all...

View Article


React Native Reanimated: useScrollViewOffset not working with...

I'm trying to create an animated header that moves based on scroll position using React Native Reanimated, but the useScrollViewOffset hook isn't tracking scroll events properly when combined with...

View Article

Expo dynamic route isn't giving local params

GoalI want to use a dynamic route (/auth/[screen].tsx) to display auth screens with different states (welcome, login, register, etc.).In app/_layout.tsx, I would use an auth provider to route to the...

View Article

Minified react error 300 in Chrome and other browsers when accessing...

I have a React Native Expo WEB project running in a S3 + Cloudfront config in AWS. I'm having a problem that, when accessing the deeplink /chat directly, in some browsers it returns a blank page with...

View Article


React-Native with Expo: Shows "Cannot find module 'xyz' or its corresponding...

I created a React Native project with Expo.I have the MainButton.tsx file inside /components folder like this:import { View, Text } from "react-native";const MainButton = () => { return ( ......

View Article

React Native Expo API did not return an Array

I'm trying to GET data from my API (BE - Express + mongodb)But somehow, maybe im doing wrong, i could do POST with login but when i trying to get product from API, its return a whole HTML DOM. Im...

View Article

How can I resolve the error "the expected type comes from property...

In my code here, I am trying to create a Stack Navigator.This is the stack navigator I have made.import React from 'react';import { View, Text, StyleSheet } from 'react-native';import {...

View Article


Image may be NSFW.
Clik here to view.

Hermes compatibility issues with Expo SDK 53 and native dependencies

I'm working on an Expo React Native app and recently tried to upgrade some dependencies. After running npx expo start --clear or building the app, I get this Hermes-related error:Here’s what I’ve tried...

View Article


Propagate generic parameters through `react-redux` `connect`

When I have a component that has a generic type parameter used as the parameter argument of a callback property, like so:const connected = connect((count: number) => ({ count })); type...

View Article

Image may be NSFW.
Clik here to view.

TextInput losing focus when keyboard opens in React Native

I'm working with React Native, and I have a part of my app that contains some input fields inside a scrollable screen. When I tapped on a field, it would gain focus, but after scrolling, the field...

View Article

Image may be NSFW.
Clik here to view.

Storybook colocating stories in turbo repo package story not found

I am trying to add storybook to my turbo repo monorepo for my UI library. I am using story book react-native-web-vite as my renderer. However, when referencing stories outside of storybook app as shown...

View Article

The method `getReactNativePersistence` doesn't seem to exist in the latest...

I've been using firebase auth in my react-native app. There is this method getReactNativePersistence that I have been using to persist login sessions.This is what I had to add to my tsconfig.json file...

View Article


Jest setup with React native cannot use import statement outside of a module

I am trying to setup Jest in my Turborepo monorepo specifically in my UI package. I'm trying to setup Jest so I have a very basic test to see how it works:Button.spec.tsximport {describe, it, expect}...

View Article

Expo-Notification not showing notification when in foreground

I have setup the Expo-Notifications, and I'm using local notifications as reminders, all works well until I need a notification to show while I'm inside the app. The notification always shows while the...

View Article


Image may be NSFW.
Clik here to view.

Type checking MaterialTopTabNavigation screen's navigation, route and props...

I have a Material Top Tabs Navigator setup with 3 screens (Shipping, Payment and Confirm), I am passing and order object props from Shipping to Payment on a click of CONFIRM button and from Payment to...

View Article

Command 'pod install' failed, Cause: /bin/bash -c

I am new to expo in general, and I was following some docs to install some icons and It required me doing npx pod install but it keeps failing. I am hitting this command from my root directory...

View Article


how can I make a richtext editor to preserve attributes and tags of my choice...

a lot of commenting because I was trying out other methods but that is the current code. it does not preserve the tags or attributes but if I use HighlightBridge, the mark tag would be preserved, been...

View Article

Font still scalable after disabling globally

Im trying to disable font scaling globally across my app. Im aware of the risks which can come due to limiting accessibility. I've read different/conflicting answers, some mentioning to place the...

View Article

React Native: Component "auth" has not been registered & routing not working...

Im working in a react native expo app, and everything was working fine..until i added firebase to it. i created the firebase.js config file and then and made changes in my auth.tsx (for authentication,...

View Article

Expo 53 - Android expo-maps crashes application (Simulator)

i've been experiencing issues with expo-maps specifically with Android (iOS at the moment seems to be working fine). When launching the modal with maps configured, the complete app closes after...

View Article


Autofill OTP in iOS React Native

I have a Typescript React Native custom component for React Native Boxed OTP input. Where it is working fine in all the conditions, but when it comes to autofilling otp for iOS it is only pasting 1st...

View Article


react-native-vector-icons/MaterialIcons jest-expo snapshot test error with...

I learning jest, writing my first snapshot tests for components using react-native & expo. I can run the test without the Icon component from 'react-native-vector-icons/MaterialIcons' inside my...

View Article

How to solve in React Native `[Error: Unsupported FormDataPart...

I'm using React Native with Expo and trying to upload an image using FormData and fetch. I use expo-image-picker to select the image from the gallery or camera.However, when I try to upload the image,...

View Article

The archive did not include a dSYM for the hermes.framework with the UUIDs...

i am facing issue when uploading archive file from xcode to apple app store in react native projectThe archive did not include a dSYM for the hermes.framework with theUUIDs...

View Article


Expo Jest fails with Cannot find module 'expo/build/winter' from...

package.json"scripts": {"test": "jest --coverage=false","testCoverage": "jest"},"dependencies": {"@config-plugins/react-native-blob-util": "^6.0.0","@config-plugins/react-native-pdf":...

View Article

Previously visible ScrollView suddenly disappeared

In my React Native app I have a component (Categories) that displays emoji-labeled category pills inside a horizontal ScrollView. It was rendering fine earlier, but recently it disappeared from the...

View Article

React Native with typescript unable to resolve modules

This is embarrassing, but I don't know what else to do. I wanted to port my little React Native project to TypeScript, so I created an empty React Native project with TypeScript template, tweaked...

View Article

Stripe Payment Integration Issue: 'Only registered Indian businesses can...

I'm encountering an error while integrating Stripe payment into my React Native app with an Express.js backend. When attempting to process payments, I'm receiving the following error message: "As per...

View Article



How to use path alias for a folder outside project root in React Native?

I'm working on a React Native project that's part of a wider project with multiple packages. The folder structure of the project is as follows (excluding most of the irrelevant files):monorepo└──...

View Article


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>