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

Why are the buttons not clickable when ImageBackground is used?

I implemented ImageBackground for my React Native app and when I run the emulator it doesn't allow the buttons to be pressed. The Buttons were tested beforehand and do function normally.I feel like it...

View Article


How do i write zod schema if my data return triple inside object like example...

{"2022-06-01": {"09:00am": {"time_table_id": 1,"job_id": 4,"start_working_time": "09:00am","end_working_time": "09:00pm","work_duration": "12:00:00","merchant_name": "Brands Outlet @ The...

View Article


Image may be NSFW.
Clik here to view.

Resolve error: webpack with invalid interface loaded as resolver after Expo...

Since upgrading Expo SDK from 43 to 45, I am getting these ESLint errors in every file on the first import line. The project is able to run though.I've tried adding the...

View Article

Image may be NSFW.
Clik here to view.

'Button' cannot be used as a JSX component

These ESLint errors happen with components imported from React Native Paper imports since Expo upgrade from SDK 43 to 45. The project is able to run though.import { Button } from...

View Article

React Native Monorepo project doesn't work on release build

I am experimenting Monorepo using yarn workspaces method containing a sample react-native project which is configured and it works fine in debug build. When I created a release build and run the app,...

View Article


Image may be NSFW.
Clik here to view.

React Native - expo/vector-icons typescript type definition for icon name

I'm trying to find out the type definitions for the icon name of expo/vector-icons, since I am intending to use it for a component props.I am import expo/vector-icons like and and defining interface...

View Article

Apollo's useQuery doesn't seem to be executing at all, how can I turn on...

I have the Apollo client configured as per the docs, using the ApolloProvider so that I may be able to use useQuery in nested components. When I run queries using the apolloClient that is provided to...

View Article

How to find layout position of footer within FlatList in React Native?

I am trying to find the y position of the component within a footer of a FlatList. I have tried calling the onLayout prop within the footer itself, however it only returns the co-ordinates of the...

View Article


Getting typescript errors while deploying the node app to heroku

I have been trying to deploy my typescript based node server to heroku but getting the following error while deployment-----> Build Running build> autoscan-back-end@1.0.0 build> rimraf dist...

View Article


How to correctly import custom icon in Expo with Typescript

I have an AppIcon like this:import { createIconSetFromIcoMoon } from "@expo/vector-icons";import icoMoonSelection from "../assets/fonts/selection.json";export const AppIcon =...

View Article

MISSING_REQUEST_URI firebase

I am using firebae auth to log in and sign up for my react app. I can get sign up working but I am having issues with log in. I followed the...

View Article

Typescript unexpected "?" when using listrenderItem with extends generic

Why I get this error at the end of my extends >= ({ item })Error:(alias) interface IShopsListDataFunctionimport IShopsListDataFunction'?' expected.ts(1005)Code: const renderItem:...

View Article

Image may be NSFW.
Clik here to view.

React Native && Firebase && useContext - "TypeError: null is not an object...

The error is occurring in my useCachedResources.ts file but I'm not sure why. These are the three files that I'm working with. I suspect it has to do with the value being initially null for the first...

View Article


react-native redux-toolkit: a non-serializable value was detected in the...

I just migrated my old-school react-native with redux App to the modern redux-toolkit and now I have this error:A non-serializable value was detected in the state, in the path:...

View Article

Unable to fetch IMEI number of a mobile device using React-Native

I have type-script code for a mobile app. I want to fetch the IMEI code of the device when I log into the app. I have linked react-native-imei (android) library with react-native successfully, but when...

View Article


Type 'ListRenderItem' is not assignable to type 'ListRenderItem

why I get this error:Type 'ListRenderItem<IPhotos>' is not assignable to type 'ListRenderItem<unknown> Code:import { Dimensions, Image, ListRenderItem, Pressable, StyleSheet, Text, View }...

View Article

Using a function on stylesheet typescript react native

I try to use some variables inside my StyleSheet file.The UI is working fine. But the type is error.Any idea how to solve this?type buttonStyle = (height: number, width: string, color: string) =>...

View Article


Navigation between screens with nested Navigation

Having a bit of trouble getting to navigate between screens in the nested navigation (Tabs and screens). Here is my code:This is the Tab Stack navigatorconst AppStack = () => { return...

View Article

How make my page wait till the hook got all data?

I'm building a react app based on TypeScript template and one of my pages is loading before the hook completes the load.I tried makings async await but it is a hook, didn't work well.How can I build...

View Article

Image may be NSFW.
Clik here to view.

Slide animation on items of horizontal flatlist

I'm pretty new to animations in ReactNative and the first one I have to do seems pretty complicated to me. my component is composed of a horizontal list of filters ("1 to n"), they don't have specific...

View Article
Browsing all 6287 articles
Browse latest View live


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