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

React-Native custom Text component with Typescript : "Conversion of type...

I've been trying to implement the following custom Text component in React Native.import React from 'react';import { Text as RNText, TextStyle } from 'react-native';export interface TextProps {...

View Article


React native, multiple records getting pushed after 2nd object being pushed...

React Native, Im trying to check the whether the object is present in the array or not, if present Im replacing the object with the new one, but after the 2nd object is inserted 3rd object is pushed...

View Article


Slow rendering of image in react Native

Image is downloaded , but still rendering very slowly, anyone knows what can be happening?enter image description herehere is my code:import React from 'react'import { StyleSheet, Image, Text, View }...

View Article

Image may be NSFW.
Clik here to view.

React Native SVG Import Return Number

Hello last 2 day I struggle with this SVG issue.First problem is I cannot import svg file it says cannot find module thenI fix it about declaring problem.Then I find a solution by writing svg data in...

View Article

RN FlatList with Typescript and Styled Components

SO community,I can't figure out the correct type definition for an RN FlatList styled with Styled Components in TypescriptSo I have type IProduct like thatinterface IProduct { id: string; name:...

View Article


Accept native component properties as props and have custom ones with a...

I have this AppText component where I want to use a Props interface while having the ability to accept other props fields that I can consume with a spread operator. But I'm getting this error:Type '{...

View Article

"react-native-vlc-media-player" not working?

I have a problem with library "react-native-vlc-media-player" when use in my project.<VLCPlayer videoAspectRatio="16:9" repeat={true} // muted={true} source={getSource('VIDEOINTRO')}...

View Article

React Native - Modal doesn't open on IOS

I have the following Modal. On Android everthing works perfect but on IOS the modal doesn't open at all. It just shows the overlay on the half of the screen and that's it. Can you please check the...

View Article


What's better? Create a variable or pass the parameter directly?

I'm studying ReactJS and there are some (simple) questions that I can't find the answer to.For example, I have a component that sends a property to another component. To pass this property I have two...

View Article


Should i create a variable or pass the parameter directly? [closed]

I'm studying ReactJS and there are some (simple) questions that I can't find the answer to.For example, I have a component that sends a property to another component. To pass this property I have two...

View Article

Tsconfig show typescript file not found error after change file name

i changed an archive name from 'index.ts' to 'style.ts', after that always returns this error in tsconfig.json:"File '/src/components/AboutContainer/index.ts' not found. The file is in the program...

View Article

React Native Image does not accept url and styles from stylesheet

I need to display an image from the backend in my app, image is a string hosted on AWS S3, and its 100% there when the image is rendered, according to the docs I should be able to display the image by...

View Article

Get the value of dropdown in ReactJs

I am pretty new to web development, I want to be able to retrieve the value in the select that is selected in the below code, but I am unable to.I want to get it in a variable in order to send it using...

View Article


Property 'row' does not exist on type '{ root: { flexDirection: "row";

[I was working on a react native project and got stuck in this error which says property does not exist on type... I am unable to change the flex direction of 'row' even though I have added it in...

View Article

Property 'row' does not exist on type '{ root: { flexDirection: "row";...

[I was working on a react native project and got stuck in this error which says property does not exist on type... I am unable to change the flex direction of 'row' even though I have added it in...

View Article


DatePicker style container not

hey everybody I'm still new to the react native world.I'm using expo and the project is in typescriptI get this error when I try style date pickereg<DatePickerstyle={styles.datepicker}. <-- error...

View Article

React Native: platform specific import

Got this weird situation. Building for react native and using a native package from Intercom. Importing it works fine when android or ios. But for the web (or node jest) it throws an error.So have to...

View Article


Generic type 'FlatListProps' requires 1 type argument(s)

I have an article component to which I pass a ListHeaderComponent which is a props of FlatListProps like this:<Article article={article} ListHeaderComponent={<HomeBackgroundImage />}/>In...

View Article

How to delete Tokens and navigate to LoginScreen in React Native

I have an React Native App which when the AccessToken refresh has failed it should logout the user and navigate him to the LoginScreen. I am trying to do this from a non-component, which means i cant...

View Article

How do I reset a screens state to its initial state when using react navigation?

I want to reset the state (back to initial state) in a functional component when navigated via navigation.navigate().Say a user navigates to an A screen and some state is set, then they click a button...

View Article
Browsing all 6287 articles
Browse latest View live


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