Cannot find module '@/assets/image.png' or its corresponding type...
I'm working on a React Native project with TypeScript, and I'm trying to import an image like this:Cannot find module '@/assets/image.png' or its corresponding type declarations.tsI've already checked...
View Articleios Expo Camera takePictureAsync got 'Received 1 arguments, but 2 was...
Minimal reproducible examplehttps://snack.expo.dev/@ayseboogie/take-photo-exWhat platform(s) does this occur on?iOSDid you reproduce this issue in a development build?YesSummarycall takePictureAsync...
View ArticleHow to resolve TypeScript error: "Property 'EXPO_PUBLIC_BACKEND_URL' does not...
I'm working on a React Native project with Expo and using TypeScript. I'm trying to access an environment variable using process.env.EXPO_PUBLIC_BACKEND_URL."The code works correctly when I run the...
View ArticleWhat causes difference in how title is displayed for tabs with and without...
Just started learning react native, specifically the tab navigation, and went through the following tutorial on the topic.What I can't figure out is some inconsistent behaviour of how the tabs titles...
View Articlemetro.config.js Using NativeWind and SVG transformer
I've been searching for hours how to mix NativeWind and SVG reader for react native application, here's the answer for me:
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 ArticleThe action 'RESET' with payload {"index":0,"routes":[{"name":"Home"}]} was...
I am stuck with an error. When I am trying to reset the screen navigation stack, I am getting this:ERROR The action 'RESET' with payload {"index":0,"routes":\[{"name":"Home"}\]} was not handled by any...
View ArticleTypeScript getting error TS2307 cannot find module 'src/' when running tsc
I am trying to configure my tsconfig.json for a package inside my react native project with metro to add module resolution and make the code cleaner so instead ofimport { LABELS } from...
View ArticleUncaught Error: useNatureRecord must be used within a NatureRecordProvider in...
I'm developing a React Native app with TypeScript and using Firebase for data storage. In my app, I have a context provider (NatureRecordProvider) that should wrap two main screens, NatureRecordForm...
View ArticleTypescript Error: Argument of type '{ task: string; }' is not assignable to...
Getting this error when trying to pass an argument through the dispatch method.Error: Argument of type '{ task: string; }' is not assignable toparameter of type 'void'index.tsx:import store from...
View ArticleAnimated View deactivating touchability
So i have this component in my RN application. when I try to animated the component by wrapping it in an animated view, the touchable opacity in the component stops working. it does not even respond to...
View ArticleShopify/restyle Pass variant value to child component
Apologies if this has been answered elsewhere. Is there a typesafe way to pass variant information to child components?I am trying to create a custom Button component using the useRestyle hook as...
View Articlewhat are the necessary parameters need when using in constainer style...
I'm new to react so as the title implies, my question is "what is flex in display : "flex" in react?"when reading multiple documentation it says that it's for flexbox, which from my understanding is...
View ArticleHow to install Storybook properly in Expo project?
I have created a demo project on react-native following the instruction on their official site. I chose to use Expo platform and the project is typescript based. I tried to add a storybook also...
View Articleno view found for id 0xe2a for fragment screenstackFragment {fd62d7}...
i am getting this error while navigating between tab. I am using react native navigation for navigating between tabs but not fix this please help me fix this issue working on it for past 2 days but not...
View ArticleAndroid build failed - Expo react native
I have an application developed with expo 49 and typescript 5.1.3. And I need to build it to upload the app to Google Play.In the vs code terminal I entered the commands 1), 2), 3) and 4).1)npm install...
View ArticleConsuming FormData in Express Typescript
I am attempting to send FormData from my React-Native application to my Express (everything in typescript) backend. However, nothing I have attempted has seemed to work.Client Side:const...
View ArticleReact Native Navigation Typescript Typing
I am having issues typing my props in a component that expects parameters. I have read through the documentation and have followed the guides. This is my component that receives parameters.type...
View ArticleWebpack not generating chunks for React.lazy imports with babel & react...
I'm working on a React native web project (with custom Webpack config) and using React.lazy with dynamic imports for code splitting. However, Webpack isn't generating separate chunks for these imports...
View ArticleReact-Native-Firebase - No Firebase App '[DEFAULT]' has been created - call...
React Native 0.71.3 + Typescript. Project uses ProGuard too, apparently.I'm trying to integrade push notifications through cloud messaging. I've only tested it on Android.I did all the steps required....
View Articletypescript Cannot add headers to a fetch api using react-native
I am using Fetch API from react-native and I am using typescript. My code looks like this:let responseLogin = await fetch('http://url_example', { method: 'POST', headers:...
View ArticleReact Native blob/file is not getting to the server
I am extremely stuck here. I don't know what I'm doing wrong. I'm trying to send a file from the an expo-image-picker component to the server. The form is sent, but the image is not. The fetch command...
View ArticleProject in react native + expo with issue when i execute the same psn-api...
I'm having problems when trying to execute the request that gets the code value that is used to obtain the token to connect to the PlayStation API. I've tried everything and I can't understand what it...
View Articleexpo: getDefaultEnhancers is not a function (it is Object), js engine: hermes
I'm trying to use redux-devtools-expo-dev-pluginbut I can't get it to work properlyimport devToolsEnhancer from 'redux-devtools-expo-dev-plugin'; export const store = configureStore({reducer:...
View ArticleFormatting chat message array to add protocol and date
I'm attempting to add two objects according to the message state.When is the first message from that day, it will add an object before that message that contains the date. The protocol will be added if...
View ArticleWordle clone with microphone integration: Why is addWord() not working while...
I have a Wordle clone made with Expo React-Native with TypeScript. I followed a tutorial on YouTube Building a Wordle Game with React Native - Simon Grimm which explained the basic logic of the game,...
View ArticleBest way to get random photo from camera roll without loading all of them?
I've been trying a long time to get this working, but no luck. I just want to pull 1 random image from my phone/emulator's camera roll. The issue is that RN and all packages that I've found have to...
View Articlepass a function to a custom react hook
Previously, I was using a graphql query like this. The data is returned from the query and I use setShowFlatListwith the datareturned: const [loadUsers, { data }] = useUsersLazyQuery({ onCompleted: ()...
View ArticleREACT NATIVE padding issue white spaces on top and bottom of the IOS screen...
I am new to ReactNative development and I couldn't figure out the white spaces that occur on top and bottom of the screen even without the SafeAreaView component. I am testing this on ExpoGo app on my...
View ArticleReact Component - Calling a function when a touch occurs but ignoring swipes
I've written a react component that is supposed to distinguish between touches and swipes. The idea is:If the user swipes on the component, its image changes. This is working fine.If the user touches...
View Article