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

React Native: Invalid prop `transform` of type `string` supplied, expected an...

We are using the CSS style transform/translate parameters but this is invalid for React Native typescript. Invariant Violation: Invalid prop `transform` of type `string` supplied to `StyleSheet...

View Article


Image may be NSFW.
Clik here to view.

I am making a react native chat app and can't figure out how to limit the...

I am making a chat app with React Native using TS and NativeWind. I am trying to make the chat bubble's wrap after a certain length but whenever I put a fixed width on the chat bubble it always colors...

View Article


variable undefined when console.log before export component React-Native...

the problem is this:I have a global variable (outside componentA definition) let name: string for example, I need to assign a value after fetch it from backend in the useEffect [], and use it before...

View Article

Como renderizar emoji con código hexadecimal de emoji [closed]

No se renderiza el emoji con el codigo hexaaquí le estoy pasando en código hexa al componente icon={interest.item.emoji}<Tag type="selectedIcon" label={interest.item.name} icon={interest.item.emoji}...

View Article

How to render emoji with emoji hexadecimal code

This is the Tag componenttype Props = tag | tagIcon;const Tag = ({ type, label, isSelected, onClick, ...icon }: Props) => { const emoji = Object.values(icon)[0]; return (<View...

View Article


Cannot find module '../assets/images/splashImg.jpg' or its corresponding type...

I have a ts(2307) error when I import some jpg files from my src folder and vsc warns that 'Cannot find module or its corresponding type declarations.'Though, my code compiled and run well, but I don't...

View Article

react-native .wav recording base64 string to buffer is becoming corrupted but...

I've been at this for some time now and at this point I'm not sure how to get it to work. In the end what I need is a File object, but I'm confused as to why within react-native I do: const buffer =...

View Article

How to implement the web3 in react-native

In my project using react-native, I want to use web3.But I'm unsure of how to use Web3 with React Native.

View Article


Expo build failing with Execution failed for task ':app:mergeReleaseResources'

Expo stopped using expo-cli to make builds and now it uses eas.I searched how to do it with expo-cli and it did not work so if anyone could help me with this build. Keep in mind that the other...

View Article


'SafeAreaView' cannot be used as a JSX component

Hi I am using react native with typescript for first time. I am getting this error from typescript on all elements from react-nativeTS2786: 'SafeAreaView' cannot be used as a JSX component....

View Article

React Native TextInput wrapper component, how to clear the value from "outside"

I needed to define a component which wraps TextInput because I have a lot of text inputs in my App and I want them to have a trash-can icon to clear text and a common style.My component is this:import...

View Article

react native detect webview scroll to bottom

I am loading html to webview.Trying to detect all the content is loaded and it is scrolled till bottom.trying to implement T&C screen in mobile app.Below is the code i tried<WebView...

View Article

How to export SVG in react-native from different file in TypeScript

I'm trying to export svg`s from theme.js:// light iconsimport Logo from './icons/logo.svg';import Home from './icons/Tabbar/Home.svg';import HomeActive from './icons/Tabbar/Home_active.svg';import...

View Article


React Navigation - How to handle navigating to screens from different...

I have a Tab Navigator with a native stack navigator in each tab. In some cases I want to navigate to a screen, that is in a different tab. This is possible, but there is no animation and the back...

View Article

upload file or image is not working on android device

I have had this issue for days now. I have tried several solutions with no luck.I have added below the example when the photo is taken from camera and then upload. Although the same happens if I upload...

View Article


How to separate an array by a property?

I have an array of products that have 5 properties, one of those being "category". What i want to achieve is to get a new array that separates these products by category BUT with the category in a...

View Article

call each other methods inside the interface in typescript

Newbie on typescript here .I have interface and methods written in typescript.I want to call another function inside another function.How can we do that in Typescript.export interface InterfaceProps {...

View Article


Support for the experimental syntax 'flow' isn't currently enabled (7:8):

I've been using a Mono repo to share react native components with react app. when I was trying to use a react native component from react, it has been showing an error which I couldn't resolve.I've...

View Article

React Native, Property 'setNativeProps' does not exist on type 'never'

I get the error when I try and call setNativeProps, any ideas?const inputElementRef = useRef(null);useEffect(() => { if (inputElementRef.current !== null) { inputElementRef.current!.setNativeProps({...

View Article

the modal window does not work in React Native Typescript

I use useState in one file, I transfer values to another in order for the modal window to work, but it does not work.I sat for a long time and thought about how to fix it, but since I just started...

View Article
Browsing all 6528 articles
Browse latest View live


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