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

How to convert to Date in Java Script?

console.log(json[0].aDate); //Mar 4 ,2022 10 30 PMconst date = new Date(json[0].aDate); // Date{NaN}const date = moment(json[0].aDate).format('YYYY-MM-DD HH:mm:ss'); // Invailed DateIs there any other...

View Article


How to get types for expo-sqlite?

In version 33 of the expo sdk, sqlite got moved to it's own package, expo-sqlite, and now I can't get the types to load.Instead ofimport {SQLite} from 'expo';I haveimport {SQLite} from...

View Article


Appropriate loader error in React Native Google Maps Web App with TypeScript

Im creating a Google Maps WebApp using React native and TypeScript. Ran into a error while compiling the project:Terminal ErrorWebpage errorThis is my Map.tsx file:import React, {useEffect, useRef,...

View Article

Image may be NSFW.
Clik here to view.

react-native using expo-av IOS recorded mp4 file form data call to openai's...

I've been at this all night, I'm attempting to record myself on my iPhone via expo using expo-av (records speech via iPhone) and upload it to openai's transcriptions endpoint using whisper-1 model.The...

View Article

Section list item update renders all the section list items

I have a section list that shows a list of items, each item is a component itself and contains a checkbox and some other views. The checkbox is not visible at first. long pressing on any of the items...

View Article


Developing TypeScript package for Node.js, React and React Native...

I am developing typescript package that should be used simple as "npm install " for Node.js, React and RN.Most of functionality of the package works in bare js without any problem, but also there is...

View Article

How to implemet a reCaptcha on react-native

I'm working on implementing a reCaptcha validator for a login screen on a react-native app which has to work both on web and mobile environments.As I'm fairly new as a programmer and have little...

View Article

corrupted file when converting base64 mp4 string buffer to blob to file

I made a more specific post regarding an issue in my react app but I feel like the extra details aren't necessary since I think I'm missing a general of understanding of base64 buffer to blob to file....

View Article


How to fix i18next::translator: missingKey en error in React native?

I am creating a react native application for Android. I want to do language translation using i18next. I get the following error when I deploy my app LOG i18next::translator: missingKey en translation...

View Article


I need to open another application with react native linking (specifically...

when I open with authy://open it returns false. can you help me? this is my code const scheme = Platform.OS === 'android' ? `authy://open` : 'authy://'; const isSupported = await...

View Article

React: issues with getting the environment variables with react-native-dotenv

I have 2 projects, an app and a webapp, the app I already set up with react-native-dotenv and works accordingly. Now using the same code for the webapp results in an error: Can't resolve '@env'.Is...

View Article

The project just stoped working for no reason [closed]

the project was fine yesterday working perfectly, and today i just writed npm start and i got this error. node:events:491 throw er; // Unhandled 'error' event ^ Error: UNKNOWN: unknown error, lstat...

View Article

How to import a file(that is at project's root level) in a package

I am writing a NPM package where I want to import a config file which will be at the home directory of the project.The most known example would be Babel, Babel uses babel.config.js located at the home...

View Article


Sending Events to JavaScript from Your Native Module in React Native?

I'm trying to pass an event from my module to react native. I followed these steps Here but it didn't work as expected.I don't receive errors but it simply doesn't work.Here is my code in Android...

View Article

TouchableOpacity onPress event doesn't work on Absolute parent, and Relative...

This is my code :<View style={{ position: 'relative' }}> { open &&<View style={styles.selectorContainer}><TouchableOpacity style={styles.itemContainer} onPress={() => {...

View Article


How to use AnimateStyle with Stylesheet.create

I am using react-native-reanimated to create an Animated.View. I want to add a dynamic style to this Animated.View by changing the scale based on some state. This is my code:import Animated from...

View Article

ReactNative + Typescript: StyleProp vs ViewStyle

While trying to add types for styles passed in to my react native components, I came across 2 ways to do it:use ViewStyle (or TextStyle or others) directlyuse StyleProp<ViewStyle>is there a...

View Article


React: How to handle cycle dependencies on useEffect

I have a React hook that receives a list of file URLs, which it downloads and saves into a local cache. The challenge I face is that I cannot figure out a good way to listen for changes in the...

View Article

How to define defaultProps in React 18 TypeScript without optionals

Using React functional components, it's recommended to no longer use Component.defaultProps. Default props should be defined in the function params itself, like this:interface Props { foo?: string,...

View Article

Type issues on hook to go back in react navigation

I'm looking to create a hook that can go back in a react navigation stack. I want the hook to be able to take a param fallback which is a route that the hook will navigate to if navigation.canGoBack()...

View Article
Browsing all 6295 articles
Browse latest View live


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