react-native run-android stuck indefinitely at EXECUTING 97% app:installDebug
Firstly, an error appeared simultaneously in every React Native proyect in computer, this happened overnight.'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11)...
View ArticleHow to solve ViewStyle typescript error in react native?
I'm trying to pass width parameter into StyleSheet like this :<View style={styles.children(width)}>{children}</View>And use it like this :const styles = StyleSheet.create({ modalContent: {...
View ArticleUsing async/await or then in typescript (React-Native) but not getting any...
Here is code block where i am calling an axios call and promise is not resolving.I am using typescript here , version of typescript is 4getBalance = async (address: string) => { let endpoints =...
View ArticleTypeError: undefined is not an object (evaluating...
I am trying to implement chat app using react-native below is my dependencies"dependencies": {"@react-native-async-storage/async-storage": "~1.17.3","@react-native-community/masked-view":...
View ArticleWhat is useCallback in React and when to use it?
I have gone through a couple of articles on useCallback and useMemo on when to use and when not to use but I have mostly seen very contrived code. I was looking at a code at my company where I have...
View ArticleReact Native Typescript styled components error
I keep getting the following error when trying to use styled components in react native and typescript:WARN Possible Unhandled Promise Rejection (id: 1):Error: Directory for...
View Articleusing React Native prop onBackButtonPress?: () => void
What is the correct chain of actions to use my prop onBackButtonPress?: () => void; ?Right now typescript shows an error for the onPress -Type '(() => void) | undefined' is not assignable to type...
View ArticleUse generic by adding another type to interface in JSX
I came across an error that I don't know how to solve.I have a generic component in React Native that takes a T value extending unknow.However, inside this type T I'm sure I'll have a type called...
View ArticleHow i work with SSO in react native? How best way to configure it? [closed]
i'm new on stack overflow and my first questions is, how work with SSO on react native? I'm using react-native-app-auth for social authentication, but i have some problems with this, first problem is...
View ArticlerequireNativeComponent was not found in UIManager
I know this question has been asked many times but all the questions refers to integrating a third party dependency in react-native app but in my case it is because of my own native code and I am...
View ArticleProperty 'setNativeProps' does not exist on type 'ForwardRefExoticComponent'
I have the following code: const menuItemRefs = useRef<{ [key: number]: typeof View }>({}); const { isMenuVisible } = useTopMenuContext(); useEffect(() => { const onBackPress = () => { if...
View ArticleHow to customize drawer navigator in react native drawer?
I am creating a drawer navigation for my react native app but can't seem to customize the drawer. Tried following the documentation and other examples but they all bring up errors. I need to change the...
View ArticleHow to specify the type for the return of useNavigation
I'm having some diffuculties specifing the parameters for a function (onError) that receive the return of a useNavigation())import { useNavigation } from '@react-navigation/native'import {...
View ArticleGetting error: No identifiers allowed directly after numeric literal
I am getting the error : [SyntaxError: No identifiers allowed directly after numeric literal]Actually I am using @solana/web3.js and @solana/spl-token libraries./*param is{"amount": "1", "mintAddress":...
View ArticleAxios error:[Network Error] Android React Native Cli
I've tried every solution to the problen mentioned in this StackOverflow Question, neither this oneIt seems the Post Owner of that first link couldn't find a solution, so I'm reposting (not 100% a...
View ArticleGet string format for date based on locale
I am trying to get the format string for dates like "dd/MM/yyyy" based on locale. I want to use it in a picker date component to change the default format based on language.
View ArticleReact native Appearance color scheme returns undefined
I'm trying to change the theme of a react native app. The idea is when a user changes the system theme on their device its automatically detects the changes and updates the UI accordingly. The example...
View ArticleReact Native/ Typescript Error: undefined Unable to resolve module
I am getting error in react native typescript:-[Error: undefined Unable to resolve module ./types from /home/ubuntu/Desktop/trash/solana_web3/test/src/start.ts: None of these files exist: *...
View ArticleWhen i create a new react native project with typescript and add styled...
component props not showingNo props of any component are showingcreation of component
View ArticleHow do i get ride of this react native animation Moti error?
I am using moti library for image animation in react native this error is thrown to me.ERROR TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[3], "moti").MotiImage')Here is...
View Article