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

TypeScript + React Native SectionList

No overload matches this call.Overload 1 of 2, '(props: Readonly<SectionListProps>): SectionList', gave the following error.Property 'sections' is missing in type '{ children: any[]; }' but...

View Article


How to call one saga at the end of another redux-saga like a async await in...

I have two sagas, one gets the cities, the other is the weather forecast for these cities (according to ID specialists), how can I make it so that the second saga is processed at the end of the...

View Article


How to get blob of an locally saved image?

I am using “expo”: “38.0.8” to develop iOS and Android application.Currently I am trying to upload blob of an image to company server, sending it with custom Axios Post method, packing blob as one part...

View Article

TypeError: Object prototype may only be an Object or null: undefined at...

//Super.tsxclass Super extends React.Component { someMethod = () => { }}export { Super };//ClassA.tsximport {Super} from '../Super';class ChildA extends Super { componentDidMount() {...

View Article

decrease distance between bottomBorder and text

As an underline, I have added borderBottom to a view that is wrapped around my text element. However, the bottom is a bit lower than how I want it to be. Is there any way I can reduce the...

View Article


Property doesn't exist on type 'object' in React Native with TypeScript

I'm very new to React Native and TypeScript so forgive me if the the question is trivial.In my application I have a screen to which I'm navigating with React-Navigation I'm also passing a callback...

View Article

Cross-platform React app (React native and React App) : React Native Video...

I try to code a cross-platform app using React. I'm using React.js for web app and React Native for Android devices, IOS devices, ...Inside my app, I want to insert a video and for my web app it works...

View Article

Image may be NSFW.
Clik here to view.

circle outline for fontAwesome icons in react native

I want to use the fontAwesome + icon such that it is in the middle of a circle. I want to use it as one icon item. I read that we can use it along with the circle icon and place it inside that but I...

View Article


Stuck with react native redash library

I get stuck with react-native-redash library when coding (Instagram Pinch-to-Zoom). I can not use Vector (or vec) and onGestureEvent from react-native-redash such as in this Video. Because there is no...

View Article


TypeError: navigation.navigate is not a function

import React from 'react';import {Button, View, Text} from 'react-native';const RegistrationScreen = (navigation: any) => { return (<View><Text>My Registration...

View Article

Image may be NSFW.
Clik here to view.

Full screen background image on HomeScreen in React Native app iphone 11

I'm currently trying to set a full background image on my login view on iphone 11 const Background = styled.ImageBackground` padding:20px; justify-content:center; width:100%; height:100%; ` const...

View Article

Image may be NSFW.
Clik here to view.

React Navigation v5 how to navigate between tabs with typescript

Here is my navigator. I have a bottomTab with 3 stack navigators as screens 'Home''Profile''Discover', and main root stack navigator with bottom tab navigator and few modal screens. I can not...

View Article

Unhandled promise rejection: TypeError: null is not an object (evaluating...

I am creating a react-native app to use the expo-camera module.So I declared a camera variable aslet camera: any = null;I am passing a reference to this from the return as:<Camera style = {{flex: 1,...

View Article


how to type event in react native with defaultPrevented?

i am getting an event object from react navigation with its emit function. e.g.: const event = navigation.emit({ type: "tabPress", target: route.key, canPreventDefault: true, });the event type from...

View Article

react-native bundle script throwing syntax error on typescript module...

When running a build using the react-native bundle script an error is thrown on react-navigation modules referring to typescript.I am running the following script to build assets into a specific...

View Article


undefined is not an object (evaluating 'h.ViewPropTypes.style') Evaluating...

I am unable to import Native-Base in snack expo. I checked this a few Days back too but the issued is still existing. I cannot figure out the issue. Does it have something to do with the version?Snack...

View Article

Cannot read property of undefined in react navigation native with typescript

I'm building a react native app and I'm having trouble passing props to another screen using react-navigation/native.Navigation set upexport type RootStackParamList = { Home: HomeProps, LoginDemo:...

View Article


move textInput element to a separate component

I have a screen where I use this :const [searchText, setSearchText] = useState('');<Item rounded style={styles.inputItem}><Icon name="search" size={moderateScale(18)} color="#bdbdbd"...

View Article

How to pass additional parameters to onChange function in React

So, I've faced this problem: I have this type of Element here, obviously there's event when changing the input, is it possible to pass params like this and access event as well? if so, how could I do...

View Article

TypeError: seamless immutable _1.default is not a function - React native...

I am trying jest unit testing for typescript based react native project.Now I am stuck on one issue when do npm test. Error mentioned below● Test suite failed to runTypeError:...

View Article
Browsing all 6214 articles
Browse latest View live