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

How to clear input search text after searching an address using...

i need assistance with clearing the input box after successfully searching an address on react native - react-native-google-places-autocomplete.import React from "react";import { View, StyleSheet }...

View Article


Image may be NSFW.
Clik here to view.

React Native Expo Jest TypesScript - Cannot use import statement outside module

I am in the process of converting an expo react-native application to TypeScript and have run into some problems with getting jest tests to run.package.json{"name": "crossword-companion","version":...

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:<Test screen={screen}/>In Test.tsx I have set the following type:type Props = {...

View Article

useQuery used in custom hook returns a response with type useQueryResults

I have the following custom hook called useGetQuerytype Props = Parameters<typeof useQuery>;const useGetQuery = (...params: Props) => { const useQueryResults = useQuery(params);...

View Article

React Native bug - No identifiers allowed directly after numeric literal

I am trying to use a data file which I am mapping over in a React Native component but I am getting the following error:No identifiers allowed directly after numeric literal../assets/data/players.js...

View Article


Can't use passed params from deep link with React Navigation V6

I'm trying to configure simple linking logic to open app via invitation linklink would be something like this [scheme]://auth/[invitaion-code]So I've configures the following linking object to pass it...

View Article

Image may be NSFW.
Clik here to view.

React Native (Typescript) Absolute path unable to resolve module

I have just created a new project and I am trying to setup an absolute path by following this post:...

View Article

Image may be NSFW.
Clik here to view.

ESLint issue when using babel module-resolver and typescript

TS is not inferring the type when using resolved imports, but it does when using relative imports. Any help would be appreciated.useTheme has"Unsafe call of an 'any' typed value."This error does not...

View Article


@gorrhom React Native Bottom Sheet - Calling from another component

Im trying to implement this relatively popular bottom sheet in React Native by @gorhom.My aim is to open the bottom sheet from another component. I've tried to follow this answer - here . However, i do...

View Article


I want to integrate image upload API in react native using...

const uploadFile = async () => { ImagePicker.openPicker({ width: 300, height: 300, cropping: true, mediaType: "photo", forceJpg: true, }).then((option) => { console.log(option);...

View Article

How do I properly use React Query with Jotai and Supabase in React Native?...

So I'm trying to implement React Query to the point where the result is set into my Jotai atoms. I'm running into this error when I try to use it:WARN Query data cannot be undefined.Please make sure to...

View Article

Typescript gives following error for adding a return type for query in RTK query

My code is as beloewinterface CurriculumDetailsApi { curriculum_id: number; curriculum_name: string; description: string; percentage_of_completion: number; post_id: string; post_type: string; topics:...

View Article

How to render an array of images in Typescript?

I have an array of objects. Each object has two properties: The first one is a string and the second one is an array of urls.this is an example of the json that I am working with:{ data : [...

View Article


Image may be NSFW.
Clik here to view.

IntrinsicAttributes props in React Native Typescript component

Hello I have this message alert:from calling this component like this:<SettingButton screeName={'Session}/>I'm learning typescript, and I have no idea what I'm doing wrong. Here is my...

View Article

useEffect is not rerendering automatically with react query refetch. Have to...

Right now I'm refactoring my React Native application to use React Query. But, I can't trigger a rerender when the auth state changes. For example, when I call log out no events or sessions are logged...

View Article


cannot initiate expo bare workflow with typescript

I`m trying to initiate expo bare workflow with typescirpt.But after I type "expo init [project name]" in command window,I cannot find minimal(typescirpt) option.? Choose a template: ยป - Use arrow-keys....

View Article

Supabase realtime subscriptions times out

Im trying to listen to realtime changes in my react-native app from a supabase table called "profiles". Whatever i try, i can't get it to subscribe to change son the table. Even when copying the code...

View Article


Image may be NSFW.
Clik here to view.

react-native: button not working while FlatList rendering new items

I want to render a list of product with a button to add the product to the basket when the user clicks on the button replaced with a counter to let the user selects the quantity of that...

View Article

How do I solve React native Animate Type Error Props

Argument of type '{ toValue: number; duration: number; useNativeDriver: true; }' is not assignable to parameter of type 'SpringAnimationConfig'.Object literal may only specify known properties, and...

View Article

How to properly add Expo to an existing react-native app within an NX monorepo?

I have a NX monorepo with a react native app. I need to install expo (cause I need to use some libs like ExpoAV) to the app, should I run yarn add expo at the workspace level or at the react-native app...

View Article
Browsing all 6290 articles
Browse latest View live


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