Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Browsing all 6287 articles
Browse latest View live
↧

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 Article


Image may be NSFW.
Clik here to view.

How 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 Article


Using 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 Article

Image may be NSFW.
Clik here to view.

TypeError: 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 Article

What 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 Article


React 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 Article

using 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 Article

Use 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 Article


How 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 Article


Image may be NSFW.
Clik here to view.

requireNativeComponent 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 Article

Property '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 Article

How 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 Article

How 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 Article


Getting 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 Article

Axios 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 Article


Get 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 Article

React 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 Article


React 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 Article

When 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 Article

How 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
Browsing all 6287 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>