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 ArticleTS2322 - 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 ArticleUnable 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 Articlecannot 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 ArticleUpdating 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 Articlepubnub 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 ArticleTypeScript '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 Articlereact 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 Articlehow 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 ArticleWhere 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 Articlereact 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 ArticleHow 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 ArticleHow 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 Articleintellisense 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 ArticleAll 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 ArticleReact-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 ArticleTypescript 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 ArticleIs 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 Articlereact-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 ArticleRxfire 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