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

Firestore nested onSnapshot await/async

I'm having an issue with the onSnapshot method. It won't await for the second onsnapshot call, so the returned value is not correct. The users fetched in the second onsnapshot call, will be showed...

View Article


Image may be NSFW.
Clik here to view.

Change and toggle background color of an button(from 2/3 button list) when...

I am trying to change a button background color when clicked and toggle between list of buttons within the same button list. I ahve been trying this since yesterday and stuck at point where i am not...

View Article


Image may be NSFW.
Clik here to view.

Create button group in React Native using react components

I am looking to see an example of button group something like in the example here https://react-native-elements.github.io/react-native-elements/docs/button_group.htmlButtonGroup created using only...

View Article

How can I fix the React Native setState error?

First of all, I apologize for my bad English.I am using the select component of the UI Kitten. Every item fails when I change it.This is the mistake;"Warning cannot update during an existing state...

View Article

error An unexpected error occurred:...

After uninstalling the react-native-clii run this command to initiate a RN project with typescript template:npx react-native init MyApp --template react-native-template-typescriptbut i got this...

View Article


How to use a prop that is a function?

I am using the Video Expo component and noticed that there is a prop playFromPositionAsync.I saw this on Video.d.ts:export default class Video extends React.Component<VideoProps, VideoState>...

View Article

unable to submit form when using flatList

My code looks like this. Previously, I was rendering and mapping some data using another component called UserList. However, now I have changed it to a FlatListWhen I was using {/* <UserList...

View Article

How can i upload multipart file in react-native?

i'm trying uploading multipart file to backend server using axios in react-native. I'm setting image using array, but i don't know how to transform object Object to object File. back-end server needs...

View Article


can't submit a form when using FlatLists

Previously, I was rendering and mapping some data using another component called UserList. However, now I have changed it to a FlatListWhen I was using {/* <UserList onSendRequest={onSendRequest}...

View Article


How to use playFromPositionAsync on expo-av Video? ReactNative

I am using the Video Expo component and noticed that there is a prop playFromPositionAsync.I saw this on Video.d.ts:export default class Video extends React.Component<VideoProps, VideoState>...

View Article

Render a function with onError

I have this object that I want to render when an error occurs while running a grapqhl query (on Apollo's onError):export const ErrorContainer: React.FunctionComponent = () => {...

View Article

TypeScript react native: how to make an HTTPS request

TypeScript react native: how to make an HTTPS requestI'm using axios

View Article

firestore async await foreach vs for

I am using firestore for a while now, I want to implement a call to get data from a subcollection.I had to create a asynchronous call and foreach() method did not await the call and continued, but it...

View Article


pass updated data in FlatList with useEffect

I run a graphql query and use the results to render some items. This works fine. Now on another screen, I run another mutation using apollos refetch option, such that whenever that mutation is run, the...

View Article

unable to use react-native-vector-icons in snack expo

I am trying to run this code on my snack expo:https://snack.expo.io/@nhammad/graceful-pretzelsbut it keeps giving me an error on the export that:import Icon from...

View Article


Difference b/w React Typescript , React JavaScript and React Native?

I have confusion about React JavaScript , React Typescript and React Native.I just have idea that we use React Native for mobile applications and and React (Javascript,Typescript) for web...

View Article

React Native - working with large json file

I have a create-react-app with typescript where I need to work with a lot of data that is currently locally stored as a JSON file inside the app.Is it better to work straight from that JSON file...

View Article


React Native Typescript - Problem with Ref type

I'm trying to pass down to my component a ref but I'm having some problems with typescript types.. If someone could help it will be much appreciated./Privacy.tsxconst Privacy = () => {const...

View Article

How to setup a Webpack alias that makes the distinction between my source...

I'm trying to make a React Native project run in the browser using react-native-web. For that to compile, I had to configure Webpack to use the directories on my project src with aliases, like...

View Article

alternative of useEffect for react hooks

First, I run a graphql query and then use its results to render some items using the FlatList. This works fine.On another screen, I run another mutation using apollos refetch option, such that whenever...

View Article
Browsing all 6213 articles
Browse latest View live


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