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

'async' modifier cannot be used here in typescript react

I am getting an error in aync, that the async modifier cannot be used here:private async getValue= (acc: Access): void => { await this.service.getForm(''); }Seems like I am doing something wrong in...

View Article


React Native expo-camera landscape video

I'm recording some videos in different orientation (landscape and portrait) but my app is forced to be in portrait mode by config. The problem is that the result of every record is saved in portrait.Is...

View Article


declaration merging for react-native-elements theme

I am using react-native-elements in my react-native application.My app is wrapped with the ThemeProvider to pass the theme down to all components.<SafeAreaProvider><ThemeProvider...

View Article

cannot forward ref to component TypeScript error

Trying to pass ref to my search component without any success. This is My component:interface SearchInputProps { placeholder: string; onSearch: () => any;}// type TextInputProps =...

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


React .map is not a function when mapping prop array

import React from 'react';import { IProject } from '../interfaces/IProject';export default function Table(projects : IProject[]) { return (<table className="table-fixed w-full"><thead...

View Article

React native typeScript and forwardRef in a functional component

I'm in react native app an I use typeScript too.I have a functional component :const Input: React.FunctionComponent<IInputProps> = ({ inputStyle, placeHolderColor = EAppColors.DARK_GREY,...

View Article

passing handleTextChange into react native elements custom searchbar component

I have this code below and I want to pass onchange={handleTextChange} in the SearchBarCustom component. But if I remove onChangeText={setValue} and add in onchange={handleTextChange} in the...

View Article


Navigation between screens breaks in Expo app after compilation

I've just finished building an Expo app along with TypeScript. Everything seems to be okay in the live testing mode, but, after compiling the app into a standalone app (for Android at least, haven't...

View Article


Image may be NSFW.
Clik here to view.

Property 'customerCode' does not exist on type 'IntrinsicAttributes & Props &...

Hey guys i'm getting this error from typescript: Property does not exist on type 'IntrinsicAttributes & { children?: ReactNode; }'i export a default interface called iCustomer which i can use all...

View Article

React Native - cancel on press

I’m creating a game with react native that involves multiple users interacting with the screen.Most of the time, it works fine, but there are times where it causes problems e.g someone leaving their...

View Article

ReactNative Animated.ScrollView ref TypeScript definition

In a React Native component, I have: <Animated.ScrollView ref={cardRef} ... />.When I hover on top of ref I see (JSX attribute) React.ClassAttributes<Animated.ScrollView>.ref?:...

View Article

ABI issue in standard pancakeswap fork

I am trying to create a fork of pancakeswap/goosedefi. The project works when I check it out from github and start using yarn start.As soon as I change the contract addresses, symbol, and ABI to match...

View Article


Image may be NSFW.
Clik here to view.

how to remove red underline error in vscode? (typescript)

I am developing a app with React-Native and I am using vscode as a code editor.When I import some image or package, I got these red and yellow underline error.How to fix this?One thing that I can't...

View Article

What happens to FileSystem.uploadAsync's promise when the app is brought back...

According to FileSystem.FileSystemSessionType, when doing FileSystem.uploadAsync the method will return a promise. Do promises still or get executed when resuming a react-native application?Also it...

View Article


How to dispatch an AsyncThunk with the createAsyncThunk helper

I am currently trying to learn some typescript/redux/reactnative.I think I have gotten the basic concepts of how redux handles state management. I am now however a bit stuck on trying to get...

View Article

How to access values separately from object [duplicate]

I have this object returned in this way:Object: {"data":"data1","value":"value1, value2"}If i just call using Object.value it will return both values. Right now I want to access value1 and value2...

View Article


React Native With Expo: Web Browser not rendering images

I am building an app with React Native. I have a <Image /> react native component that renders on android but doesn't seem to render on the browser. When inspecting the element, the browser has...

View Article

However, this package itself specifies a `main` module field that could not...

I have installed the 'react-native-auto-scrolling` package and I get the following error:error: Metro has encountered an error: While trying to resolve module 'react-native-auto-scrolling' from file...

View Article

Invariant Violation: "trackerApp" has not been registered

i struggle since a several days with the following error: **Invariant Violation: "trackerApp" has not been registered. This can happen if:* Metro (the local dev server) is run from the wrong folder....

View Article
Browsing all 6287 articles
Browse latest View live


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