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 ArticleReact 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 ArticleSlow 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 ArticleReact 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 ArticleRN 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 ArticleAccept 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 ArticleReact 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 ArticleWhat'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 ArticleShould 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 ArticleTsconfig 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 ArticleReact 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 ArticleGet 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 ArticleProperty '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 ArticleProperty '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 ArticleDatePicker 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 ArticleReact 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 ArticleGeneric 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 ArticleHow 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 ArticleHow 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