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

how to stream a streamable video from a google storage bucket with expo-av...

I need to stream a video with the expo-av video component on react native.The issue I'm having is that it has to download the entire video before it starts playing.It needs to stream the video and play...

View Article


Image may be NSFW.
Clik here to view.

Error in folder structure using typescript, expo and react-native

I set up a new typescript project on react native using expo and tried to use "src" as the folder structuretsconfig.json is defined like this{"compilerOptions": {"noImplicitAny": true,"noEmit":...

View Article


how to handle JEST error: Cannot find module

When I run yarn jest I got this error: Cannot find module '@img/test.svg' from 'src/screens/TestScreen/TestScreen.tsx'I'm trying to import SVG-s from a folder, the import works fine, but I only have...

View Article

Trying to get SSID for iOS and Android using React Native

Can not get SSID of iOS or Android device using NetInfo.I am currently working on a mobile app that requires a specific SSID but I need to determine what the SSID is of the device.iOSEntitlements...

View Article

How do I prevent a user from inputting multiple periods in React Native?

I'm using UI Kitten's Input component and react-hook-form and I don't want the user to put more than one period onPress so once one period is inputted, the user wouldn't be allowed to input another;...

View Article


React-Native File 'expo-module-scripsts/tsconfig.base' not found

my problem is like this// @generated by expo-module-scripts{"extends": "expo-module-scripts/tsconfig.base","compilerOptions": {"outDir": "./build" },"include": ["./src"],"exclude": ["**/__mocks__/*",...

View Article

TypeError: Cannot read property 'params' of undefined Jest Testing - React...

I have created a test file to test my following "BiddingScreen",const BiddingScreen = ({ route, navigation }) => {const { currentBid } = route.params;return (<SafeAreaView...

View Article

Expo router , how to override the types for the Link component

I'm a bit of novice in regards to both typescript and expo router. I'd like to override the types for the Link component. Anyone know of any examples or how I'd go about doing it ?

View Article


Using a node API into a expo project

Exist an open-source API that make webcraping in my university student page logging, getting infos and downloading files. API is written using standard node library, using http, https, path and some...

View Article


How to preload 5 seconds of video before showing it in react-native-video?

How to preload 5 seconds of video before showing it in react-native-video?

View Article

Type annotations can only be used in TypeScript files. ts(8010)

I'm following a tutorial (link to tutorial below) on setting up an IAP (In-App-Purchase) for a react native app. While writing the code, vs code is warning me that "Type Annotations can only be used in...

View Article

How to get the return value of setState(prev => (prev)) in React?

I have a custom hook which wraps setState function so I can do something with the values as they are passed into the setter.In this case, setState either takes a string value or a callback with the...

View Article

TypeScript React Native Flatlist: How to give renderItem the correct type of...

I'm building a React Native app with TypeScript. renderItem complains that the destructured item implicitly has an any type. I googled and found this question and tried to implement what they teach...

View Article


AsyncStorage does not save in between app reloads with expo (TS/React Native)

I have a context which stores the state for a theme variable in my app.Initially it is set to empty.AppSettingsContext.tsximport React, {createContext, useState, useEffect} from "react";import {...

View Article

React Native Expo Start ignores typescript errors

I'm using Expo with Typescript, and when running with expo start (and potentially building), it ignores my TypeScript errors.VS Code will still show an error, but I can reload the App and run it on my...

View Article


Image may be NSFW.
Clik here to view.

React Native - Trying change 2 View heights with GestureHandler

I am trying to create Height adjustable Views with React Native for an app I am building. I keep getting stuck on this one aspect. I am trying to create two stacked Views, with a line inbetween them so...

View Article

ERROR Invariant Violation: Failed to call into JavaScript module method...

I am trying to run a react-native project of someone else's in my android simulator. after installing all the dependencies and copy and pasting the src folder I'm getting this error and I've no idea...

View Article


[Unhandled promise rejection: TypeError: Network request failed]

I am uploading photo with expo-image-picker and it works okay for IOS but for android it shows the following error message [Unhandled promise rejection: TypeError: Network request failed].The code is...

View Article

export 'IDropdownRef' (reexported as 'IDropdownRef') was not found in...

I am getting below error while compiling in React: It shows a cross button on top-right. After clicking on it, I am able to proceed.Compiled with problems:X ERROR in...

View Article

Most efficient way to fetch posts and the users who posted them - Supabase...

I have an app that allows users to create posts. With Firebase I had the posts nested in the user documents as JSON instead of having a separate posts collection. For Supabase, everything I have seen...

View Article
Browsing all 6290 articles
Browse latest View live


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