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 ArticleError seeding data: [AppwriteException: Invalid document structure: Missing...
Working on a react native app and having issues with the Appwrite database.here is the error:ERROR Error seeding data: [AppwriteException: Invalid document structure: Missing required attribute...
View ArticleReact Native NativeWind (Frameless) Versions Compatibility Problem
I'm new to React Native and trying to create an app using tailwind classes but getting different types of error while building the application.The errors are as follows:The development server returned...
View ArticleHow 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 ArticleTextInput padding/scroll state persists after navigation or note change...
I’m building a note-taking app in React Native (see code below) where each note’s content is displayed in a multiline, non-editable TextInput. The paddingTop of the TextInput is dynamically set based...
View Article@typescript-eslint/prefer-readonly-parameter-types: allow StyleProp
I need to pass a parameter of type StyleProp<ViewStyle> to my function. eslint is issuing Parameter should be a read only type. I allow StyleProp and ViewStyle in the rule options but eslint is...
View ArticleCustom text input with an optional icon and styling
I am trying to create my TextInput component that wraps around React Native's TextInput, but applies additional styles and adds more features.Unfortunately, I am stuck at the very start of my...
View ArticleHow to import based on variable to avoid loading unnecessary assets
Using React Native+ExpoI'm trying to load only the correct font based on the user font.const comicFontName = 'Comic-Neue';const fonts = [comicFontName];export function DisplayPost(props:...
View ArticleExpo 54 How to read bundled assets directly without extraction to cache?
I'm building an app with React Native / Expo SDK 54.The app bundles ~42,000 compressed HTML files (.zst format, ~224 MB compressed) that need to be accessible without network access.The ProblemMy...
View ArticleTypeError: Cannot assign to read only property 'userId' of object '#'
This code worked previously, but now that I upgraded my expo version I am getting the error "TypeError: Cannot assign to read only property 'userId' of object '#'".export interface CurrentUser {...
View ArticleSlice text on full available space
Hope you're having a nice day.I'm working on a React Native todo list app.I want to slice my text when the available width is full and add "..." at the end. Right now I've the algorithm to slice the...
View ArticleHow to return a non Never type in supabase.rpc?
I created a pgsql function in Supabase and tried to connect my VSCode with the function in order to upload data onto Supabase.My code: const { data, error: uploadError } = await...
View ArticleXcode simulator black screen problem when a specific model was closed - React...
ProblemAfter a successful request, when the modal is closed with setVisible(false), a black screen appears just like that. To explain it more clearly: I open the modal with this button and after...
View ArticleHow can I call an async function on double tap?
I have an Expo app where I have an element. I want to call an async function when I double tap that element. For doing that, I found the react-native-gesture-handler library. I wrapped the whole...
View ArticleReact Native Metro suddenly trying to process TypeScript files it can't...
I get the following error after running npx expo start --dev-client to start my react native expo app:SyntaxError in node_modules/react-freeze/src/index.tsx: Unexpected token, expected "," (8:1)It...
View ArticleExpo router stack screen not working based on order
Expo stack screen not working , Not getting load login page on first load based on order by insted (tabs) screen loading first. When iam trying to load my login screen first by changing screen order...
View ArticleLottie file not animated in react native expo
I'm using React Native with TypeScript and Expo. I downloaded a JSON file of an animated icon from Lottie Files, but it's not animating. I'm not sure what I'm missing; I followed the documentation.this...
View ArticleExpo camera permission causes white screen during page transition
I have Ran into an issue on android devices only, where during a page transition animation a white screen shows real fast. This doesn't have anything to do with the expo camera mounting, because even...
View ArticleReact Native: Azure ACS Chat SDK is not working on release build on iOS -...
I'm trying to implement chat feature in my mobile app and I faced a problem with WebSocket connection on release build.I followed instructions from...
View ArticleCannot 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 ArticleKeeping BLE and GPS active in background with screen locked (React Native +...
I’m developing a mobile app in React Native using Expo, and I’m testing it through an EAS development build (not Expo Go). The app uses Bluetooth Low Energy (BLE) to communicate with an external device...
View ArticleHow to Avoid Repeatedly Calling Hooks for Theme and Responsive Styles in...
What I want to achieve: A performant react native theme manager/changer.Styles should be usable like: <View style={styles.screen}> where styles comes from a styles.ts file where I define my...
View ArticleReact Native iOS 26 Liquid Glass Text Input
I'm struggling to figure out how to properly create a text input, like in the attached file (add a reply text input), using React Native. I'm currently using Expo, but I am open to whatever. It should...
View ArticleHow to handle initial/default state when using tRPC RouterOutputs as the...
I’m using tRPC in an Expo (React Native) app and deriving frontend types directly from the generated API output.import type { RouterOutputs } from "../utils/trpc";type UserDetails =...
View ArticleHow can I place a Drawer inside a Stack with React Native Expo router?
I need to place a Drawer inside a Stack layout in my React Native Expo application. The idea is the following:The main screen of the application consists of three screens, A, B and C.The main screen...
View ArticleProperty * 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 ArticleHow 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 ArticleHow do I use App.tsx instead of App.js in React?
I've created a react project with the instructions from it's documentation, which automatically has added the App.js file to the project. My issue is that I want to use App.tsx instead of App.js. For...
View ArticleHow to change the Favicon in Storybook
I'm trying to implement Storybook into my project and I can't seem to figure out how to change the Favicon. I'm using version 8.2.9 and I can't find any relevant information online. I don't have a...
View Articlestart function is not firing up the Copilot Steps
Current BehaviorEverything was working fine till I was at react-native: 0.77.3. As soon as I upgraded to react-native: 0.83.0, I start getting issue of copilot-Steps not appearing or appearing after a...
View Article