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

React native Typescript path alias unable to resolve module

so basically, I created my React Native with Typescript using the commandline in RN homepage:npx react-native init MyApp --template react-native-template-typescriptAfter that, I ran the project and it...

View Article


Passing callback as parameter to callback give me error Expected 1 arguments,...

I'm tring to pass a callback to a set state but it gives me this typescript error => Expected 1 arguments, but got 2.ts(2554).i just wanted to pass a callback to setState to update the satate of the...

View Article


Expo: No native splash screen registered for provided activity. Please...

Unhandled promise rejection: Error: No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first....

View Article

JailMonkey is not available, check your native dependencies have linked...

I have this warning when my app is first loaded and I cannot login due to it.Below you may find the package.json dependencies. I have checked other solutions that mentioned on other questions but I...

View Article

React Native - Modal doesn't open on IOS

I have the following Modal. On Android everthing works perfect but on IOS the modal doesn't open at all. It just shows the overlay on the half of the screen and that's it. Can you please check the...

View Article


Check dynamically if values are mandatory and then check if the mandatory...

I have this object state which I have intialized it as initialSegementI have created this component when I set the state of every field startDate, endDate etc and all is working fine there.I want to...

View Article

React Native - useState - Text Input field is not clearing the first...

My problem is that when I enter on the airline textInput for example "TEST" and when I enter the delete keyboard button, the last character stays in the state ex: "T", but in view it shows like its...

View Article

Could not find com.google.firebase:firebase-iid

I get the following error when trying to build a React Native project:BUILD FAILED in 6serror Failed to install the app. Make sure you have the Android development environment set up:...

View Article


Custom theme is not applied to the react-native-elements components

I've created a custom theme and passed it to ThemeProvider, but it hasn't been applied to react-native-elements components. I'm using react-native-elements version 4.0.0-rc. Here is my code:Custom...

View Article


Image may be NSFW.
Clik here to view.

Property 'require' doesn't exist in react native error

I think this error from metro bundler,here is the image for the error:I try every solution on the net from the official react native GitHub issue.also try deleting node modulesrestart the cacheOn the...

View Article

Image may be NSFW.
Clik here to view.

How do I make this kind of modal design on more section in React Native...

This the image example of the modal I want to create:I am unable to design this modal. Please if any one could help me with this.

View Article

How can I avoid optional chaining when I use redux toolkit?

I am using redux toolkit. I'm trying to store object data called Targetfarms in redux. I assigned a type called Farmstype to Targetfarms.However, when I bring Targetfarms with useSelector in the...

View Article

[FirebaseError: Firebase: Error (auth/network-request-failed)

So i have an error following tutorial on youtube, already try finding on youtube how to fix it but the tutorial show google sign-in but i don't use that functionif anyone can help Thank You Very...

View Article


Image is getting cropped in edges while using with Draggable component in...

I am using react-native-draggable for the drag and drop of an image in an android application. The drag and drop work perfectly but the image size is getting cropped out.For the vertical images some...

View Article

Typescript: onPress type

I just ported my react-native project to typescript and have a question about functions as propsim passing:<DisplayCardsWithLikesdata={testData}likes={500}onPress={() =>...

View Article


Image may be NSFW.
Clik here to view.

How to change border Color of thumb of switch react core component

on pressing the thumb of switch of react native its giving me default color in place of thumb color border should be of nearby to orange how to eliminate it? and substitute the colorimport React, {...

View Article

React Native Keyboard Animation

I am using React Native Pager View and trying to create a registration form. Each child view in Pager View contains another TextInput. When I scroll to another page, the keyboard tries to disappear for...

View Article


ESLint (Airbnb) + Prettier setup for React Native (Expo) in TypeScript

I have been working on setting up linting & formatting for my React Native project for a couple of weeks now, but I'm unable to make much progress. I have looked at many tutorials and followed them...

View Article

Image may be NSFW.
Clik here to view.

react-native: how to check user have the latest version of application

I'm working on the application and have API points return the latest version and whether this version is required.in the application, I send get request to this API point to verify the response, and...

View Article

React Native Typescript : scroll with useRef and scrollIntoView

I wanted to be able to scroll to an element when I press on a element. (ex : I press D and it scroll down to the letter D) . Howether while there is no error here, it is not scrolling down.Here is my...

View Article
Browsing all 6290 articles
Browse latest View live


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