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

How can I send data on a get and receive a return?

I have to send this data in a get request but I don't know how to do it. Can you help me?const ROUTE = "public/v1/route";export async function showRoute( flow: string, token: string):...

View Article


TS2322 - false | Element is not assignable to type ReactElement. Error does...

I understand what the error is saying and I have been able to fix it, but I was hoping someone could provide some clarification on why it's happening now and why it isn't happening in other areas of my...

View Article


Unable to map the array and get the values on Screen React Native

const DynPut: FC<Props> = Props => {const [value, setValue] = useState<string>(['1', '2', '3', '4']); return (<View> {value.map(v => {<Text>{v}</Text>;...

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

Updating an object attribute Typescript React-Native

I'm trying to update an attribute. I'm new to typescipt (and react/react-native/javascript etc.) so please be patient. Here is an attempt to try to recreate my issue:export default function App() {...

View Article


pubnub removeListener doesn't trigger on useEffect return

While opening a single chat works flawlessly, entering a chat, then leaving the chat screen and entering the chat again causes double messaging and the listener isn't being removed despite placing it...

View Article

TypeScript 'Record' is not defined

I am writing a React-Native project with TypeScript, so far everything works fine but the following part throws an error:export interface Country { name: string; cities: Record<string,...

View Article

react native typescript screen test returning Test suite failed to run...

I am experiencing difficulty writing tests for react-native typescript screen using instructions from the URL belowhttps://react-native-async-storage.github.io/async-storage/docs/advanced/jest/I keep...

View Article


how to get the response from a post typescript method?

how can i use the answer from this function? example, I want to use the value obtained in token and cookie, helpexport type UseResponseParams = { token: string; cookie: string;};export async function...

View Article


Image may be NSFW.
Clik here to view.

Where is the generated javascript made by Expo-CLI Metro?

I have an Expo app that appears to fail on an Android emulator, but I can't seem to find the cause as of yet. The error seems weird because it looks more like a syntax error which I presume would've...

View Article

react native typescript screen test returning Test suite failed to run. Error...

I am experiencing difficulty writing tests for react-native that involve mocking Internet and Vibration permissions written in typescriptusing instructions from the URL belowHow to mock...

View Article

How do trigger a rerender based on a timer but only on a specific component...

I have a component that renders relative timeimport React, { useEffect, useRef, useReducer } from 'react'import { Text, TextProps } from 'react-native';import { formatDistanceToNow } from...

View Article

How to get data from notification, without clicking on notifications...

Right now I can handle messages when the app is open, minimized, or closed, but when I click on the notification. How to process a message if a user logs into the application without notification?...

View Article


intellisense not working with tsconfig.json, babel.config.js, and .eslintrc.json

I configure these babel.config.js, tsconfig.json, and .eslintrc.jsonit working fine with project run and build but it's not showing any suggestions (intellisense) with my imports.Please review and help...

View Article

All the page data are loaded at once when using pagination in react native

I am trying to integrate pagination in my react native app. I am able to get all the dataapi response:{"msg": "shifts list","data": {"docs": [ {"_id": "1","expected": {"shift_duration_minutes":...

View Article


React-native: Migration from javascript to typescript

I'm trying to evaluate the cost to migrate our project codebase from javascript to typescrit, and our main goal is mainly to not have to transform ALL of our code base to typescript now but step by...

View Article

Image may be NSFW.
Clik here to view.

Typescript object changes when pushed into an array

I have something very strange happening...I have an array called destinations which takes objects with a dest, an amount and a memo.My code is the following:I have a variable "element" which (when...

View Article


Is there a way to access a clipped svg image to save back to the device in...

I have a static image that i crop with a circle and now i want to save this modified image in my device's gallery, does anyone know how to do that? I am using TypeScript.cropped imageimport React from...

View Article

react-native-maps does not render when apk is manually installed on mobile

I have a problem with google maps at expo, when I'm developing I can render the map all normal using mapview but when I build the app-bundle or apk and install it manually on my phone it just doesn't...

View Article

Rxfire object not allowing firebase reference as a parameter

Good day, I'm trying to use rxfire to combine multiple Firebase data sources, The code below should stream a list of "cities" from Realtime database and then retrieves their image from a Cloud Storage...

View Article
Browsing all 6287 articles
Browse latest View live


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