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

Display a string variable on SVG in React-Native

I am trying to display the user's initials (so basically text) on (or inside) an avatar (SVG). I found many topics on this but none of the syntax that I tried worked for me. I am also using TypeScript...

View Article


CyberSource card number encryption (RSA-OAEP-256)

Is there anyone know here how do I encrypt card number in cybersource?i tried to encrypt mine using online RSAOAEP encryption tool but i got this response { "responseStatus": { "status": 400, "reason":...

View Article


React spread operation of JSX elements inside map

I am mapping over a array inside a array for a Picker and am struggeling to figure out how to return the JSX elements rather than the JSX element array.code example:{modelA.map((mA) => { const...

View Article

Nativebase: property "listkey" does not exist on accordion

So in my React Native app for Android, I have an Accordion from Native Base that is nested inside another Accordion:imports ... type Props = {}; const AccordionOne: React.FC<Props> = props =>...

View Article

Use typescript with the Animated API in React-Native

Trying to move a project to typescript, I am facing an issue with typescript with the Animated API in React-Native.The goal is to make the value progress go from '0%' to '-100%' or the other way...

View Article


turn static method of class into variable typescript

Hi all so currently I am making a service for my application/library i am creating and so far this is the best way I can figure out how to create a service. Ideally I would like to change this method...

View Article

Nesting/combining combined reducers in redux?

How to combine combined reducers for example like this?: export const streamsRootReducer = combineReducers({ streamsPending: streamsPendingReducer, streams: streamsReducer, streamsError:...

View Article

How can I iterate through a props and increment the values inside the props?

I am trying to increment the values of the props whenever an option is clicked depending on which one I click on a mobile application. Each click takes me to the next page and each page has a list of...

View Article


Is it possible to get svg height?

I am using react-native-svg npm to load svg file from link in my react-native app. The problem I have is, that if you want to draw svg file you need to provide height, which can later not match the...

View Article


TypeScript type for onLayout event in React Native?

How can I specify a type in TypeScript for React Native's onLayout event? const handleOnLayout = (e: SomeTypeHere) => { // stuff }; <View onLayout={handleOnLayout}> <Text>Hi</Text>...

View Article

React native with typescript - how to use the useRoute from...

I'm trying to get my incident object from route.params but I don't know how to do it to make typescript recognize this prop.Here is the function that navigate to my Detail page passing incident to...

View Article

Are there scripts or tools to help to migrate Flow to TypeScript automatically?

I have an old react-native module using Flow. There are several thousand lines of code. Now, I would like to migrate these codes to a new project using TypeScript. I am looking for an auto-tool to help...

View Article

React-native build fail: "Could not create task...

I'm trying to run my react native app on my usb connected android device. Yesterday it worked perfectly, but today, without changing anything, npx react-native run-android command fails with this error...

View Article


How to navigate to another page in ignite bowser react native?

I am new to react native / ignite bowser. I am making a react native / ignite bowser project. First there is a welcome screen which appears when the app starts. There is a 'continue' button in the...

View Article

How to navigate to another screen in react native?

I am new to react native. I am making a react native project. There is a welcome screen which appears when the app starts. There is a 'continue' button in the welcome screen. When I click the...

View Article


React navigation drawer content props types definition

I am creating a custom drawer content using this guide:const DrawerContent = (props) => ( <DrawerContentScrollView {...props}> <AntDesign name="close" size={32} onPress={() =>...

View Article

How to navigate to another page in react native ignite bowser?

I am new to react native / ignite bowser. I am making a react native / ignite bowser project. In my app first there is a welcome screen which appears when the app starts. There is a 'continue' button...

View Article


Property 'ref' does not exist on type AnimatedProps React Native 0.62

Since migrating to react-native 0.62 I get the following error for Animated.View and all the Animated.Components or components created using createAnimatedComponent():Property 'ref' does not exist on...

View Article

How to correctly use HOC with two kinds of props

I'm having trouble figuring out how to apply HOCs to this situation. I want to wrap existing components, since they all do very similar things. Here's a simplified version my current setup:function...

View Article

Typescript: How to suppress "No overload matches this call"?

So I have a React Native application that uses Native Base as UI lib and Typescript. Now there is an Accordion which - as soon its expanded - renders a second (nested) Accordion. The problem is that...

View Article
Browsing all 6211 articles
Browse latest View live


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