./node_modules/@expo/vector-icons/build/createIconSetFromFontAwesome5.js...
./node_modules/@expo/vector-icons/build/createIconSetFromFontAwesome5.jsModule not found: Can't resolve 'react-native' in 'C:\Users\User\Desktop\social-media-app-main\social-media-app-main\node...
View ArticleGet multiple input values in React Native
i'm rendering an string array 'options' as this<View ref={refInput}> {options.map((item, index) => (<View key={index}><View style={{ display: "flex", flexDirection: "row"...
View ArticleHow can I fix the eslint error saying a TypeScript props interface is not...
I have this component using AvatarProps as type for the props :Here's the interface declaration:export interface AvatarProps { userName: string; userLastName: string; userImg?: string; onPress?:...
View ArticleReact Native AsyncStorage : blank page error
I'm trying to save my data locally with AsyncStorage but there seems to be an issue when I use getDataconst storeData = async (value: string) => { //storing data to local storage of the device try {...
View Articlehow to make a type with keys as values from another type in typescript
I have a objectconst navigatorNames: NavigatorNamesType = { homeNavigation: 'HomeNavigation', authNavigation: 'AuthNavigation'}where type is type NavigatorNamesType = { homeNavigation:...
View ArticleReact-native & typescript: component, property 'children' does not exist on...
I am struggling to understand why typescript giving me this error message when I use <ImageBackground> and <Image> component from 'react-native'.error message:No overload matches this...
View ArticleUsing TS absolute paths in import statement triggers an error in react-native
I am currently converting relative paths to absolute paths in my React-Native app and it triggers the following error:Error response to absolute importAnd I have set up my tsconfig.json as...
View ArticleReact native typescript giving me an TS error when using "className"
used React for a while now but new to React Native.I am using tailwind with https://tailwindcss-react-native.vercel.app/installationimport { View, Text } from "react-native";import React from...
View ArticleReact Native (Typescript) Absolute path unable to resolve module
I have just created a new project and I am trying to setup an absolute path by following this post:...
View ArticleComponent exposed from @expo/vector-icons cannot be used as a JSX component
VS code give me the above alert, when I am using the AntDesign exposed from "expo/vector-icons".import { AntDesign } from "@expo/vector-icons";export type Icon = { name: "home" | "crafts";};export...
View ArticleArray.at method not working in React-Native Release and debug(not on browser...
I am using react-native (0.68.1) with typescript and unable to use the new Array.at() method in my app as it throws the following error.Although it does seem to work when using chrome debugger. I...
View ArticleUnable to mock API request using miragejs in ReactNative Typescript because...
I am building a mobile application using ReactNative. My app is interacting with an API. I am trying to mock the API requests using Mirage JS when I am building the app locally following this link,...
View ArticleWhy is the behavior of `jest.useFakeTimers` different when called inside vs....
OverviewI encountered different behaviors of jest.useFakeTimers when it is called inside beforeEach versus called outside.Reproducible Examples// Foo.tsximport * as React from 'react';import {View}...
View ArticleWhy I got Possible Unhandled Promise Rejection in React Native?
I want to get 4 values from user and I want storage them in asyncStorage and list them main page.first of all I have App.tsx like this:App.tsx const [objName,setObjName]= useState('') const...
View ArticleIs it possible to create a strictly typed React HOC in Typescript?
As context, I'm attempting to create a higher order component to wrap React Native components and add some functionality based on a ref to the component.Short, untyped example:export function...
View ArticleHow can I create a node module using lottie-react-native?
I'm building a React-Native component library.I built a simple loader using lottie-react-native.When installing the library locally, the component works.After publishing the package on github and...
View Articlehow to make scrollView known when hit end list
so i got a problem where my scrollView can infinite scroll until the banner or the container is gone, what i want is when you hit the lest section like number3 you can't scroll anymore, because i want...
View ArticleReact Native - Type Script - Object should be changeble to a number when user...
My question is, what should I modify on the interface so the number before the object (0, 1, ...) is generated automatically when the user click Add? export interface IRoute { amount?: string; id?:...
View ArticleWhat I am doing here wrong with memory leak
I have this code which calls an ajx request and set an error if returned 2. It is returning 2; but no error messages showing up and gets to next page (as if it is a success)...
View ArticleExpected 0 arguments, but got 1 error. When passing a function as a prop to a...
I passed the deleteImgfunc function from the insertFarmDiaryDetail component to the InsertFarmDiarySubPage component, which is a child component. The deleteImgfunc function is a function that receives...
View Article