Getting array of object when changing country in react-native-phone-number-input
I am using react-native-phone-number-input in my project. I am also using formik inside itBelow is my code:const textChangeHandler = (text: any) => { var getCode =...
View ArticleHow to add width to line unequally around a point react native
Hello I am tried to achieve this image below, where as you increment the score of an attribute the line increases in size depending on the score.I am at the point where the lines increases in size and...
View Articlereact-navigation ver6.0 shows an error when using navigation.navigate
What I'm facingWhen I'm using navigation.navigate('XXXPage'), react-navigation ver 6.0 shows the following error.Argument of type 'string' is not assignable to parameter of type '{ key: string;...
View ArticleHow to read local storage data in useEffect hook in React Native
I am trying to get data from my local storage by using useEffect before rendering any components. I am using the data from the local storage for my flatlist however, when i try this my flatlist is...
View ArticleIs there a way from stopping screens overlapping on each other like this in...
I've followed the react navigation example exactly, however my screens keep stacking on top of each other like this initially it gives the errorFound screens with the same name nested inside one...
View ArticleEslint CLI doesnt show prettier errors but VSCode does
I wanted to use eslint to integrate the airbnb styleguide. Also I want the prettier style rules.Problem is eslint is giving me no errors when using it from the command line but VSCode does.VSCode shows...
View ArticleHow can I reveal an element behind a flatlist and have it interactable in...
I am trying to render an element that is positioned absolutely behind a flatlist and it will be revealed once the user scrolls to the bottom. The issue I am facing is that the element needs to be...
View ArticleReact Native - Problem Using Image Component
I am trying to use the Image component in my flatlist however i get this error when i try to use it."JSX element class does not support attributes because it does not have a 'props' property."My...
View ArticleTypescript: how to name array of strings that could be undefined?
I'm using Typescript in my React Native app and I define the following array:const arr: string[] = Platform.select({ ios: ["a", "b", "c"], android: ["a", "b", "c"]})VsCode underlines arr and tells me...
View ArticleHow to get params and type definition for custom React/React-Native components
I built a custom React Native Input Component which shows a dark border at the bottom when focused but when I am using this component then I am not getting props suggestion provided by VS Code...
View ArticleReact Native render error Value is undefined expected a object
So I dont know why I am getting this weird error and I am unable to find any solution for it so plz help with meErrorCodeimport React, { useRef, useState } from 'react' 2 import Animated, { Easing,...
View ArticleReact Native Maps - How to access snapshot
I am trying to view the snapshot using the Image component for my flatlist however the image is not displaying and i believe i cannot access the file. "item.picture" returns the file path for the image...
View ArticleuseState in react-native doesn't works on android via EXPO
I'm trying to make an user join a room in socket.io.The event sent from react-native client is :export default function App() { const [username, setUsername] = useState('') const [room, setRoom] =...
View ArticleChange language based on user selection on expo
Just wondering if there's any way to change the language of an expo app with typescript based on user selection (so not device language).I read through the docs on expo...
View ArticleGetting "Types of property 'accessibilityRole' are incompatible" error
Am getting typescript error when i extend th TextProps from react-native and pass it to the Text component created by styled-component Overload 1 of 2, '(props: Omit<Omit<ActivityIndicatorProps...
View ArticleReact Native Accessing Image
I am trying to view the snapshot using the Image component for my flatlist however the image is not displaying and i believe i cannot access the file. The snapshot is saved using react native maps...
View ArticleAdd 2 buttons in the same line
How can I use Native Base buttons in a way that they both appear to be in the same line? Currently, the second button is on the right as it should be, but it appears a bit lower than the first button....
View ArticleHow to use ref prop and useRef with Lottie files in Typescript?
EDIT: I realized this is actually working now, despite the error message! So I don't really need help with the implementation, but would like to know how to get rid of the error. Why is it giving me an...
View ArticleHow can I load in firestore documents into a flatlist?
I'm trying to simply load documents from a Firestore db into a Flatlist in react-native. I'm using expo to monitor changes to my application. I've been running into a few errors that I can't seem to...
View ArticleReact-Native Warning: Overwriting font Family style attribute preprocessor
I'm getting the following warning:"Overwriting font Family style attribute preprocessor" coming out from StyleSheet.js when running the app on iOS simulator. I haven't tested on Android yet...
View Article