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

TypeError: Cannot read property 'replace' of undefined - Not sure where it's...

When I run my expo project I am getting a console warning stating.TypeError: Cannot read property 'replace' of undefined at matchFileNameOrURLFromStackTrace...

View Article


React Native Navigation : Navigate to another Stack Navigation (Nested)

I'm trying since few hours to navigate from a StackNavigation to another Stack navigation.I'm using typescript and this is not easy to define right types for all screens.I made the exemple below of my...

View Article


react native - How to add the option to my code to Prompt the user to choose...

I use the react-native-file-viewer directoryI want to know how to add the option to my code toPrompt the user to choose an app to open the file with ..someone know how to do it ?import FileViewer from...

View Article

React Native FlatList error: No overload matches this call. Type is missing...

I am new to React Native, and am trying to build a simple chat room application. I want to create a list with elements representing available chat rooms, and I can't for the life of me figure out why...

View Article

react native - How to add prompt option to the user while choose an app to...

I use the react-native-file-viewer directoryI want to know how to add the option to my code toPrompt the user to choose an app to open the file with ..someone know how to do it ?import FileViewer from...

View Article


How to re-configure TypeScript in a react-native project to support...

ProblemI am working on this PR where I add Webpack in my project.My goals arelong term: to configure Webpack in the react-native project in order to distribute a web application using...

View Article

react native - How to add a prompt option to the user while choosing an app...

I use the react-native-file-viewer directoryI want to know how to add the option to my code toPrompt the user to choose an app to open the file with ..does anyone know how to do it ?import FileViewer...

View Article

Fetch issues of responses

I don't understand why that happens and the response gives: {"_U": 0, "_V": 0, "_W": null, "_X": null} i really don't get it any help?export const handleConnectivityChange = async() => {let...

View Article


upload a file and display its content

In my react project, there is a screen where the user can upload a file (excel, csv) from their computer. After uploading, currently, nothing happens. However, I want to print or display whatever text...

View Article


AWS Solition for serving Ads in react-native?

Quick question, I am building an mobile application in react-native and trying to keep everything on AWS the client wants to be able to serve ads like from Google Ad Mob but I have had a hell of a time...

View Article

Image may be NSFW.
Clik here to view.

How can I implement a live user feed using Flatlist or Scrollview?

Trying to create a live feed to display videos of worldwide users.I'm planning on using the React Native Twilio Web RTC Library,below is a sketch in paint of the general idea.<ScrollView...

View Article

TypeError: undefined is not an object (evaluating 'ejRepository.getWordandMean')

I'm trying to retrieve data from a pre-populated database using TypeORM using Expo, imitating this working example (https://dev.to/jgabriel1/expo-sqlite-typeorm-4mn8). It keeps throwing this...

View Article

TypeError: Jest: a transform must export a `process` function

I've a problem to setup Jest with Expo and Typescript for React Native.Jest shows me this: TypeError: Jest: a transform must export a `process` function. My testimport React from 'react';import...

View Article


Image may be NSFW.
Clik here to view.

Problems with react-native-svg-transformer and typescript

I decided to add typescript in a existing project and have a issue when a i works with import of .svg like a thisimport Icon from "../../../assets/Icon.svg";i tried configure metro.config.jsconst {...

View Article

React Navigation - RootStackParamList is in error in VSCode

I started an application managed by Expo and installed the navigation dependencies.I chose to use Typescript and therefore followed the typing recommendations in the documentation. I attach to this...

View Article


how to use navigation.replace in TypeScript?

I am trying to use this in my code:const navigation = useNavigation();navigation.replace('AllFriends')But I keep getting an error that:Property 'replace' does not exist on type...

View Article

React-Native (0.64.2) Formik handleSubmit onSubmit not firing

Relevant Modules:Formik: "2.1.4"Yup: "0.28.5"React-Navigation v5So i've been struggling with a simple formik problem for a day now, and I'm sure I must be missing something, but I would love some help,...

View Article


Image may be NSFW.
Clik here to view.

React Hook Forms How to pass the errors as a props using Typescript

I'm defining a useForm.const { handleSubmit, control, errors } = useForm<{email: string}>();Now I'm creating a seperate component that will the input and I'm going to pass the useForm props i...

View Article

Weird Array behaviour in ReactNative [duplicate]

I want to render a table on the screen. So, I create a two-dimensional array and iterate over it in the render function:class Matrix<T> extends Array<T[]> { constructor(width: number,...

View Article

Type 'unknown' is not assignable to type '(prevState: number | undefined) =>...

I am using material ui's select component to save the selected value in a variable:const [ratio, setRatio] = useState<number>();...const handleChangeRatio = (e: React.ChangeEvent<{ name?:...

View Article
Browsing all 6287 articles
Browse latest View live


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