React Slider Component: I'm new to using animations and PanResponder, so not...
I built a Slider component (Single and Range) that mimics the iOS native Slider. I'm new to using animations and PanResponder, so not entirely sure how that works + Using it with useCallback and...
View Articleerror null is not an object (evaluating 'this._state') [closed]
In my react native mobile app I have used aws as the backend, And I have subscribed to data to get real time updates in my app. I tried but I couldn't solve this error. Please helpThis the errorThis is...
View Articlestate is not getting updated in react native
I am selecting a date using react-native-community/datetimepicker, and then on onChange function I am saving my selected date in a stateconst [changedDate, setChangedDate] = useState<string |...
View ArticleReact Native bridging to swift native class not working
We upgraded React Native from "^0.62.2" to "0.66.0". Before the Bridges worked fine. After using the latest version, i can't get even the basic tutorial...
View ArticleMaterialTopTabNavigator giving error Maximum depth exceeded
Error imageI am using two tabs for the Navigation.Tab.Navigator><Tab.Screen name="Questions" component={questions_screen} /><Tab.Screen name="Confirmed Symptoms"...
View ArticleProblem with running react-native android on mac Os
i am new to react native running yarn android i get an error concerning gradle...i will be greatfull if anyone can help me..`FAILURE: Build failed with an exception.Where:Settings file...
View ArticleCould not find a declaration file for module 'react-native-foo-package'
while I added any component to my pure react-native project, the application screen turns to the white empty page.The import 'react-native-foo-package' line has '...' near the package name, and it has...
View ArticleFocus not moving cursor [React Native]
When I use a functional component, the focus does not move the cursor when focus is changed. The Input changes accordingly (label floats), but the cursor remains on the first input.I have seen...
View ArticleRendering external image import in react-native via loop [duplicate]
I am working on a react-native project that has an Image Gallery where users can select a variety of images as their wallpaper but I am having a tough time rendering the images.my imagedata.js file...
View Articlereact-hook-form Controller component does not acknowledge...
apologies as I'm still fairly new to React Native. I encountered this issue upon replacing some poorly styled dropdown picker with a 3rd party library (react-native-dropdown-picker). I was able to...
View ArticleReact native typescript how to type FlatList
I don't find the way to type a FlatList in react nativeexport interface Category { id: string; title: string; bg: string;}export const CATEGORIES: Category[] = [ { id: "c1", title: "Italian", bg:...
View ArticleBabel-node can't process flowtype files imported in Typescript file?
I got, it seems, an odd situation where I can't find an answer on the Interwebs. In those case, I think I'm doing something incorrectly or not in a standard way.Contextan open-source React-Native App...
View ArticleReact native axios post not returning any values
I am a bit new to react native in typescript and I am having an issue returning data fetched with AxiosHere my code belowimport { LOGIN_URL, showErrorAlert } from "../../utils/constants"import axios,...
View ArticleReact native post using typescript and axios not working
I need a bit of help with my react native in typescript project. I am having an issue posting data with Axiospost executed with axios call is failingHere my code belowimport { LOGIN_URL, showErrorAlert...
View ArticleReact Navigation: How do I type nested navigators properly?
Situation:As you can probably tell, I'm currently building an AudioBook player (how creative /s). It's my first bigger project for both react-native and typescript and I'm struggling a bit when it...
View ArticleReact Native Functional Component useState Loses Typescript Class
I've got a functional component which has state with an object of a specific class:import React from "react";import { ReactElement } from "react-native/node_modules/@types/react";import { useState }...
View ArticleReact Native: How do I type nested navigators properly?
Situation:As you can probably tell, I'm currently building an AudioBook player (how creative /s). It's my first bigger project for both react-native and typescript and I'm struggling a bit when it...
View ArticleHow to Update React Native Functional Component State from Storage
I've got this component which is attempting to set its state using an object loaded from storage:import React from "react";import { ReactElement } from "react-native/node_modules/@types/react";import {...
View ArticleHow to extend type from a library in TS?
I use a useTheme hook import { useTheme } from '@react-navigation/native' from react-navigation lib that returns colors object that is a type of Theme.type Theme = { dark: boolean; colors: { primary:...
View ArticleTypescript type T is not assignable to type T&U in anonymous function
I have an issue where type (text: string) => void is not assignable to type intersection ((text: string) => void) & (() => any) & ...My code looks as follows:import React, { Component...
View Article