Unable to update redux state and realm database
I'm trying to update my redux store with data that was entered in my useState.While I was researching this error logs, I've noticed that in most cases it is related to realm database, somehow it seems...
View ArticleReact Native Error: Failed to create parent directory of file:///data/...'
RNFetchBlob.fs .readFile(uri, 'base64') .then(data => { RNFetchBlob.fs .writeFile(uri, data, 'base64') .then(() => { console.log('FILE CREATED!!'); }) .catch(error => {...
View ArticleHow to upload photo from expo-image-picker?
I've tried multiple ways to upload photo from expo-image-picker, but still don't figure it out. The server is classic nestjs with multer @Post() @UseInterceptors(FileInterceptor('file')) public...
View ArticleParameter of union type of enums?
What I have are two enumsenum Fruit { Apples, Oranges };enum Vegetable { Garlic, Cucumber };and a typetype Food = Fruit | Vegetable;Now I want to make another type that is a function and takes a food...
View ArticleCannot find module '@components/...' or its corresponding type...
Previously have used TypeScript with React several times without any issues. Moving over to React Native and recieved this error for both imports for my custom "RoundedButton" and "Card"...
View Article"Invalid hook call." when trying to use useState in an arrow function
Hello fellow StackOverflow community :I'm encountering this issue, where my react-native app with TailwindCSS and TypeScript is returning me-Invalid hook call. Hooks can only be called inside of the...
View Article"api Request Failed" when using cashfree in react native
I am trying to use cashfree in my react native app for payment.Below is my code:import { CFPaymentGatewayService, CFErrorResponse,} from 'react-native-cashfree-pg-sdk';import { CFDropCheckoutPayment,...
View ArticleGlobal navigator object not found with Tyepscript
I am trying to use react-native-geolocation-service with in a React Native app and to do so the documentation says that to get the user's current location the following code needs to be added (see...
View ArticleTypeError: Cannot read property '__expo_module_name__' of undefined, js...
I updated my expo and react native app to the latest version and I am facing this issue, I searched on google but didn't find any solution
View ArticleTrying to get SSID for iOS using React Native NetInfo
Can not get SSID of iOS device using NetInfo.I can get the SSID on Android.I am currently working on a mobile app that requires a specific SSID but I need to determine what the SSID is of the...
View ArticleCan't setup path alias typescript React Native
I trying to setup my path alias in React Native. I added needed paths into tsconfig and babel.config:tsconfig:{"extends": "expo/tsconfig.base","compilerOptions": {"strict": true,"jsx":...
View Articlegetting cannot read code of undefined in react nativereanimated
I am trying to create a weekly calendar and has a select date when you tap on the date I want to animate the color change with the help of react native reanimated:3.0.2Here is my code const...
View ArticleSyntaxError with file in node_module Unexpected token, expected "," (4:7)...
I have integration rnmapbox/maps#main via repo github in iOS and have some error from node_module.I have create issues in github too via that link but if anyone face that issues before. Please feel...
View ArticleShowing Recent Errors Only 171 duplicate symbols for architecture arm64
duplicate symbol 'OBJC_IVAR$_GCDAsyncSocket.connectInterface6' in:...
View ArticleCan't stop re-render for color background with useMemo React?
On each re-render it generates a new color. How do I cache the first color it gets initialized and re-use it each now? const backgroundColor = newBackgroundColor(); // some random color const...
View ArticleReact Native - IntelliSense suggesting react-native/types instead of...
I want to import <View from react-native but instead, what I got is react-native/typesHow can I fix this? This is a new project start from scratch and I added TypeScript like the doc guide:yarn add...
View ArticleTypeError: (0 , _codeSigningCertificates).signBufferRSASHA256AndVerify is not...
Can't launch my app after a few switches between commits. Expo go shows the error in consoleTypeError: (0 , _codeSigningCertificates).signBufferRSASHA256AndVerify is not a function (Expo Go)and on...
View ArticleTypescript - App.tsx is not under rootDir
I have just installed typescript for my react-native project and when I run the project, the following error message is displayed in the packager:error: bundling failed: Error:...
View ArticleExporting interfaces in React Native with Typescript
I'm working on a login and register screen for my app with the fields username, email, password and token. Instead of creating a [user, setUser] state in each file, I want to create a global interface...
View ArticleUnable to import typescript module
As soon as I'm importing Driver interface from api/event module I get an error: Cannot find module '@api/driver' when i try to import it.import { Driver } from "@api/event";declare module '@api/driver'...
View Article