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

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


Image may be NSFW.
Clik here to view.

tsconfig.json shows error: Entry point for implicit type library 'glob'

I have a Monorepo which uses Typescript. I have a common folder which shows this error on the top of the file -> Entry point for implicit type library 'glob'. I am not sure what is wrong with the...

View Article


How to make local shared TypeScript package available during EAS Build for...

EAS Build Cannot Resolve Local Shared TypeScript Package in MonorepoProject StructureI have a monorepo setup with a shared TypeScript package that works perfectly in development but fails during EAS...

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

Error “Requiring unknown module ‘undefined’” with AWS SDK v3 in Expo SDK 52...

I’m migrating my app to Expo SDK 52 (Hermes) and using AWS SDK v3 to call Cognito from React Native:import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';import {...

View Article


How do I un-constrain an absolutely positioned element's width so that it may...

Why are absolutely positioned elements in React-Native still relative to the parent with their width? If I use a text with a flairText style as I've written in my example the text inside will still...

View Article

Initializing Text.defaultProps with Typescript

I just started rewriting my existing react-native project from js to typescript.To disable font scaling, I set Text.defaultProps.allowFontScaling to false at the beginning of App.js and it worked...

View Article

Getting Expo Router to work with web navigation

I have an app I'm building using Expo and React Native, currently I'm building and deploying for web-based platforms (via Firebase Hosting) in order to get something out there before we go through the...

View Article


Expo Image.prefetch works on Android but not iOS

My images were loading slow when using expo-image so I tried using image prefetch which works correctly on android but asset loading is still slow on ios. Has anyone experienced this or has any...

View Article


Image may be NSFW.
Clik here to view.

react native typescript 'string' is not assignable to parameter of type...

[I keep getting the error that says 'string' is not assignable to parameter of type 'never' in react native typescript and I don't know why. Can someone help me fix this bug.Thank you in advance.code...

View Article

Why Toast message not appear in react-native-root-toast?

I implemented react-native-root-toast in my expo application, I am using expo 51, please refer below code to understand the problemconst bgColor = {'error': { color: '#DA5C53', iconName:...

View Article

React Native Modal not showing properly when opening after focusing TextInput...

I’m developing a mobile app using React Native + Expo.On one screen, I wrap all my inputs inside KeyboardAwareScrollView.Besides the inputs, I also have a simple Modal that only contains some text and...

View Article

[Android][expo][@react-native-voice/voice] [TypeError: Cannot read property...

I'm trying to record user voice and transform it to text in react-native app, using expo, typescript, and @react-native-voice/voice package.I have imported the library into my project, but when I try...

View Article


How to refetch react openAI react query queries

I am working on a react native app that is using openapi-react-query in order to enforce the type safety across backend and mobile, my struggle is how to refetch queries (in a component other than the...

View Article

How to solve internet connection issues with expo go on phone?

When I start npm in VS Code along with the API, everything runs fine in the browser on my computer.However, on my phone, it doesn’t work properly. When I scan the QR code, it takes a long time to load...

View Article


Look for react native solution that we can open the Floating window outside...

Look for react native solution that we can open the Floating window outside the App even when the app is closed or minimize

View Article

Expo monorepo build fails with module not found

I am using react native and expo eas in my monorepo.The app lives inclients/mobile/<react native app>My metro.config.js lives inside the mobile folderconst { getDefaultConfig } =...

View Article


React Native TTS played sound twice on iOS simulator, and only once on...

Consider a mobile payment app. Once the transaction is succesfully paid, then a notification sound will be played, something like "Hello the transaction is succesfully paid.".Here's my attempt to do...

View Article

How to properly lift any container on pressing the input bar in newer Android...

Very simple question.I have pixel 6a below code works everywhere expect the real pixel device 6a which has android 16.It works on Redmi note 11 which has android 11 and on Emulator which is pixel 6...

View Article

How to get rid of this error in React native

Does anyone else get this error and just have to ignore it constantly? Unexpected text node: . A text node cannot be a child of a <View>. There's not an extra '.' somewhere in my code as it...

View Article

axios giving ERROR API ERROR: [AxiosError: Network Error] in react native

I am new to react native, and I am trying to submit an API using axios in react native, but I am getting the following error:ERROR API ERROR: [AxiosError: Network Error]I dont know what this is or how...

View Article


Image may be NSFW.
Clik here to view.

Expo Router - How to wrap Stack in a layout

I would like to develop an application in React Native, but I'm having problems with layouts. I would like to create a layout and surround my application with it to use it only once. In the past, I...

View Article


Property * does not exist on type typeof * - static parent method

React Native, TypeScript code JS(non-TS) ORM module:Parent BaseModel:export default class BaseModel { static createTable() { ... } ...My model of Animal does NOT redefine the method, it's just defined...

View Article

Failed to obtain view for PanGestureHandler in functional component

I'm working on a React Native app using Expo and react-native-gesture-handler.When I try to use PanGestureHandler inside my App.tsx, I get the following error at runtime:ERROR [Error: [Gesture Handler]...

View Article

Can I pass boolean values through search params using Expo Router's...

I'm trying to pass a boolean flag when navigating between screens with Expo Router and read it with useLocalSearchParams, but the value I receive is a string (e.g. "true" / "false") rather than a...

View Article


Image may be NSFW.
Clik here to view.

How to properly receive a message on ReactNative app via WebSocket?

We use OneSignal to implement push notifications for our ReactNative app. So far works fine on Android & iOS devices... until we need to support a particular Android device without Google Play...

View Article

Image may be NSFW.
Clik here to view.

How to properly receive WebSocket messages using react-use-websocket?

I'm still trying to figure out how to receive message on my ReactNative app using Websocket. Now with react-use-websocket library.Here's my code:import useWebSocket, { ReadyState } from...

View Article

Why is React Native debugger opening in x86 version of Chrome, and not arm64?

I'm using react native with Expo/Hermes on a mac M1. When I open the app and hit "open debugger" it opens the debugger in an x86 version of chrome, which is extremely slow. Why is this happening?I...

View Article

Image may be NSFW.
Clik here to view.

websocket message sent from Centrifugo appears on HTML and not on ReactNative...

I used Centrifugo to send webocket message.Here's HTML page that receives the message, and it works.<html><head><title>Centrifugo quick...

View Article



Image may be NSFW.
Clik here to view.

How to use navigate to move to another page from App.tsx?

I use Centrifugo to deliver push notifications to our app. So far, displaying the message using Toast works fine. Now I want to do something different, something like navigate to a certain page.Here's...

View Article


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