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

Platform specific import component in react native with typescript

I am using react native with typescript. I have a component with the following structurecomponent - component.ios.tsx - component.android.tsx Now I want to import the component. So, I am doing...

View Article


react-native Gradlew doesn't create app.aab

System Inforeact-native: 0.59.8android-studio: 3.3.1BackgroundI'm making simple react-native app. I tried to upload my application on Google Play Store, but failed. I followed this documentation. As it...

View Article


Image may be NSFW.
Clik here to view.

Data from firebase is not loaded once in react-native app

I'm making a react-native app with typescript which has three bottom tabs.The issue is when I move to another tab, the data from the firebase is not loaded once.import React, {useState, useEffect} from...

View Article

How can I Pass React Hook Modal State Between Components?

I'm building out a component library and I'm in the process of handling state between my App.tsx (where the component will be imported) and the component ContactActionSheet.tsx. When the user presses...

View Article

React Native, TypeScript - Property 'includes', 'finds' does not exist on...

I have found this question asked in many many many places but not a single one of the answers has worked for me. My hunch is that it has something to do with me working in react-native but I am...

View Article


Image may be NSFW.
Clik here to view.

Props in styled-component component have no typing

I'm using react-native + typescript + styled-component (with all @types/* installed) but props still have no typing inside a "component"What can be wrong?I expect props to be props: MainThemeInterface...

View Article

Typescript - JSX element type 'Wrapper' does not have any construct or call...

I am using React Native + Typescript app and getting an error on Wrapper variable.JSX element type 'Wrapper' does not have any construct or call signatures. TS2604 import { StyleSheet, View } from...

View Article

Image may be NSFW.
Clik here to view.

ReferenceError: Can't find variable: networkRequest

When I used scrollable-tabview in import refresh functinality then it will raised one error like this.ReferenceError: Can't find variable: networkRequest_onRefresh = (callback) => {...

View Article


How to update rendered flat/section list items immediately React Native

I am creating a ContactListScreen. The immediate child of ContactListScreen is ContactItems and ContactItems is a sectionList which renders each ContactItem. But the problem arises, as my ContactItems...

View Article


react-native react-thunk triggering on initial component load and any...

I'm a bit new to react, react-native, react-redux, and react-thunk and am encountering this strange issue which I can't explain.I have a sign-in component that uses a thunk to authenticate a user. I...

View Article

React native typescript syntax error, unexpected token

I have just setup my React-native project using typescript.I get the error below. Any ideas?bundling failed: SyntaxError: C:\Users\Matt\sites\IAapp\navigation\AppNavigator.ts: Unexpected token,...

View Article

Typescript error - don't use function as a type

I have started to use TypeScript in my React-Native projectMy linter doesn't like function as a type, how can I refactor my hoc to pass my linter? AppNavigator:const withHeader = ( screen: Function,...

View Article

Typescript definitions for Animated.View's style prop

I have component whose Props interface extends ViewProps from React Native, i.e:export interface Props extends ViewProps { // Custom props } Naturally, this extends the style prop. There is one caveat,...

View Article


Using createRef in react-native with typescript?

I am trying to figure out how I need to use React.createRef() in react native with typescript as following code throws errors // ... circleRef = React.createRef(); componentDidMount() {...

View Article

TypeError: _getPrototypeOf2 is undefined

I use react-native-web with typescript and when I'm trying to run my project I get this errorTypeError: _getPrototypeOf2 is undefined in...

View Article


Typescript path mapping for React Native *.android.ts and *.ios.ts modules

I'm using Typescript (version 2.2.1) in VSCode (version 1.10.2) for my React Native project and I'm trying to get the compiler to map *.android.ts and *.ios.ts paths by using the instructions...

View Article

Calling native function from TypeScript in react-native

Lately I needed a simple function to interact with the native code, but I decided not to build a package, because it wouldn't be very useful. I created the java files exactly as if they were from a...

View Article


React Navigation 5 type error when navigating between stacks

I'm getting some TypeScript errors when using react-navigation 5. I'm sure this is something I am doing wrong with regards to how I am typing things / structuring the app but I'm not sure what.I was...

View Article

Cannot find module - Typescript [closed]

To fix this issue, in file tsconfig.json:"compilerOptions": { ... "moduleResolution": "node", ... },

View Article

Cannot access json file downloaded from RN-Fetch-Blob

In my file, i download and upzip a .zip folder which contains a JSON file. I have also checked that the file does exist after download from the following code, RNFetchBlob.fs.exists($dbSchema)...

View Article
Browsing all 6208 articles
Browse latest View live


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