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

Cannot use module in TS, Newbie Here

So I've been trying to build web application with React Native and Typescript but I can't add button. I can add the button in component and then use it in my tsx, but when I try to add this button from...

View Article


React navigation v5 passing an inline function for 'component' prop warning

With usage of typescript and using a component conditionally on separate routes i had to use generic types for correct typing.This is my AuthConfirmEmailScreen component with corresponding type...

View Article


React 17 + TypeScript Error: Can't find variable React

I have a library using React 17 and Typescript and it works when run in the iOS Simulator in the project. I can also successfully run npm build to build new version and npm publish to publish it to...

View Article

How to get the json values of a "get" request in react native

Hello I'm working on an app that obtains data from my own database, now I'm making a get request to obtain a JSON with more than one object and I'm trying to access to it. At least I want to print them...

View Article

Yarn workspace help needed

So I am working on a react native project. And for the project my client after typing a lot of code asked me to add a late feature. Basically this was a very easy feature but because of all the code I...

View Article


Problem associating a reference to a view in a react native project with...

I have created a react-native project with the typescript templatenpx react-native init myApp --template react-native-template-typescriptWhen I associate a ref to a View in a tsx file I have this...

View Article

What type is assigned to props.navigation.navigate in Typescript? (React Native)

I'm trying to pass as props a function which will return props.navigation.navigate and change the screen: handleSubmit = (formState: AddContactFormState) => {...

View Article

How to access React child element props in a type safe manner with TypeScript?

I'm trying to access props of a React [Native] component in my app (which are guaranteed to be instance of element of my custom type ItemTemplate:const children =...

View Article


How to use ref prop and useRef with Lottie files in Typescript?

EDIT: I realized this is actually working now, despite the error message! So I don't really need help with the implementation, but would like to know how to get rid of the error. Why is it giving me an...

View Article


using dispatch on react

I am new to react and I'm trying to create a register and login page with react-redux and dispatch using the mern stack.When I am calling the method the function did not run.I have a file for the login...

View Article

Expo TypeScript Tabs Snapshot Test App.tsx

I initialized a default Expo project using Typescript and Tabs option.Follow these directions (https://docs.expo.io/get-started/create-a-new-app/) and select the Typescript with Tabs option.Then I...

View Article

Passing UseState in React Native with typescript to Input box component and...

I am having some problems passing the use state to a custom text input component.I want to update the state of symbol everytime a user makes a change in the input box. The use state symbol does not get...

View Article

React Native Firebase Multiple Image Upload Problem

In React Native, I select images using the ImagePicker package and upload images to Firebase Storage. I also want to send Firebase Storage image links using the Getdownloadurl() method with the...

View Article


Children as text don't display in component in React Native

Can You please tell me why data from GitHub Api don't display as children in component ?UserData in object containing typed user details extracted from GitHub API. Childern which I want to display is...

View Article

How to Navigate One page to another page in Navigation 5 React Native Using...

<View style={{ flexDirection:'row',alignSelf:'center',marginTop:16 }}><Text style={{ color:'#fff',fontSize:14,fontFamily:'Roboto-Regular', }}>Already Have an Account ?...

View Article


TypeError: _this7._config.server.rewriteRequestUrl is not a function React...

I have followed all the instruction given at this upgrade helper for upgrading RNv0.62 to v0.64.1 and my app is getting installed successfully in the device but my metro bundler is failing with some...

View Article

Children as text don't display in Text component in React Native

Why does data from GitHub API don't display as children in Text component called StyledDetail, created in styled components? Main screen which renders data is TabOneScreen , UserData in object...

View Article


Access a variable in react-typescript

I am learning react-typescript,Code -import {phones} from "../../get_phone";interface IProps { phone: phones,}const Query1: React.FC <IProps> = ({phone}) => { console.log(phone) const [model,...

View Article

Empty string renders as undefined in React Native app

In the app once screen renders childern of displays as undefined although I want to have them as empty strings initially until user name is typed. When I type proper user name userData is fetched...

View Article

Calling Subcomponent using JSX throws error

I am trying to call one subcomponent within the same class but it throws an error If I use it with curly braces it's working fine.Below code throws an error:public TotalCostSavings = () => { return...

View Article
Browsing all 6287 articles
Browse latest View live


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