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

Using activeStorage with i18n on expo not working

Trying to set an app using Typescript React on expo that can show a different language based on a user selection, but doesn't seem to be working.I've made it store the selected language in asyncStorage...

View Article


Image may be NSFW.
Clik here to view.

typescript extension in VSCode

I just created a sample react-native project with the following command.react-native init SampleProject --template typescriptThen I got the red line of Editor. How to fix this?I guess this concerns...

View Article


Value type for Material UI's Select component

I am using Material UI's Select component (which is like a drop down menu) like this:const [criteria, setCriteria] = useState('');... let ShowUsers = () => { console.log('Working criteria',...

View Article

useState with interface- react native typescript

there is a way to use useState with an interface type?This is what i'm tryint to do :const [movie, setMovie] = useState(null);[...].then((responseJson) => { var movie: Movie = { id : id, title:...

View Article

setInterval not working with async funtion in react native

I am just learning to react native and I am trying to record video and show remaining video duration in the screen.I am using the below code:setInterval (() => { this.setState ({progress: progress *...

View Article


Differing string values when passed between JavaScript (React Native) and...

I'm trying to send string data (specifically PEM formatted keys) out from a Native Module (written in Swift) through a Typescript exported function and into the main JS functions of a React Native...

View Article

How to click on component behind the modal in react-native?

How to click on component behind the modal in react native? I am using native modal.Is there any prop for that?Thanks in advance

View Article

How to create specify typescript RN version?

I type the command to create React Native project with typescript.npx react-native init MyApp --template react-native-template-typescriptpackage.json"react-native": "0.63.2"I want to create 0.62.2 with...

View Article


How to trigger onPress in button tag embedded in TouchableOpacity tag without...

I have a view that stays hidden until the expand state is true. it is set to !expand in toggleView when TouchableOpacity is pressed. However, when i click on the buttons to add to cart & delete the...

View Article


react navigation getparam with typescript

I am working on an app where I navigate from a FlatList to a custom component and I need to access the data i pass to the component. The FlatList component currently looks like this:import React from...

View Article

Why, even after specifying a type parameter for a React component, the linter...

Please consider the following TypeScript (.tsx) code:import React from 'react';import { TextInputProps } from 'react-native';import { Container, TextInput, Icon } from './styles';interface InputProps...

View Article

Ionic React - how to hide the Ion-Split-Pane when in the login and...

The main issue I am having is I don't know how to hide the IonSplitPane when I am not logged into the application. If anyone knows a solution to this issue it would be appreciated as the only answers...

View Article

The "injectBabelPlugin" helper has been deprecated as of v2.0. You can use...

I am trying to customize my imports using babel. I am following this link:https://medium.com/@leonardobrunolima/react-tips-working-with-relative-path-using-create-react-app-fe55c5f97a21This is my...

View Article


React Native Project BUILDS Succesfull(with deprecated warning) and opens in...

I used yarn to install the packages, Im using typescript, my index is JS.I'm getting a white screen with the load symbol on the emulator..Thanks for the ones helpingHere's what Im getting:info Running...

View Article

How to add items in array in react native?

I want to add item.name,item.id,item.price in array onClick of button.Button is in Flatlist so every time I eant to save these items in array and finally I want all these items.**enter code...

View Article


Can't tap on checkboxes in React Native

I make tests on React Native. I use react-native-paper for this. This is my code:{(!props.question.isSingleAnswer && props.question.answers.length) && <View>...

View Article

Validation functions with react

I am trying with React to do a validation, with a footer which has several buttons, then each one has its value (home, orders, payments, among others), I want that when it is located in one of them, it...

View Article


Errors after adding typescript to react native app

I'm very new to TypeSccript. I'm trying to convert my React Native to use TypeScript. I followed the instructions here: https://reactnative.dev/docs/typescriptAfter running yarn tsc I get errors...

View Article

Typing incompatibility between useRef() and d3.drag() in React-native

I have a weird typing issue that's been driving me crazy for the last two days. I hope you can save my sanity :D!Stack : react-native (Functional Component oriented) + typescriptLibs involved:...

View Article

toggle-switch-react-native for typescript

I want to use the toggle-switch-react-native component in my Typescript app. I tried installing it like this:yarn add toggle-switch-react-native --save@types/toggle-switch-react-nativeHowever, I still...

View Article
Browsing all 6213 articles
Browse latest View live


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