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

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


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


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

How to pass props to StyleSheet in React Native using TypeScript?

I wanna create a custom button component that can pass props to the StyleSheet. At this project, the props I wanna send is the hexcode so the component can have different colors based on the color...

View Article

How to check if press outside a component in react-native?

I did a custom select but I have the problem to close it if I press outside the select or options. basically the "button" is a TouchableOpacity and when I click on it there appears the list of options....

View Article


How to make a button non-working until another React Native TypeScript button...

I have such a problem, I need code so that after pressing one button, another React Native TypeScript button is available for pressingI tried many things, but nothing came out

View Article

Problem with import component in react-native - typeScript

I have a problem with import my component when it's in ./src/components/CustomButton/index.tsx and when im using defined paths in tsconfig. Then my import looks likeimport CustomButton from...

View Article

JSON.Parse AsyncStorage string as array (Typescript)

Sorry for the wierd title...theres a few layers to this one that made it hard to summarise into a title haha.I have made two functions to retreive data from AsyncStorage:export const getItem = async...

View Article


React Native single nested screen doesn't track the stack so goBack() doesn't...

I have product categories which are multiple levels deep.I've created a reusable Categories Screen which renders the first layer in a flatList. If I press on a category it navigates to the same...

View Article


Error when trying to run a new ReactNative project

I just made a new react native project on my mac. Everytime I try to run the project in an ios emulator I can never seem to get it to run.Here is the command I run npm run iosHere is the error:CompileC...

View Article

How to properly type useNavigation in React Navigation?

I'm trying to type the useNavigation from React Navigation. I would like to be able to pass only the name of the route, but I get an error unless I also pass props for that route.Following the...

View Article

React Navigation 6 change the size which is passed to tabBarIcon

In BottomTabNavigationOptions type, under field tabBarIcon there is a callback which can be defined by the user:(props: { focused: boolean; color: string; size: number }) => { return (<Image...

View Article

Typescript/yarn workspaces - Referenced project may not disable emit

I'm trying to setup a monorepo project using typescript and yarn workspaces.The project's structure looks like this:/example/packages /lib1Example is an app that used the packages, for development...

View Article


Add audio to recorded video in react native

Is There any way or Sdk that can merge audio to the recorded video for Short Video like instagram reels in React Native, (may be paid Sdk), Please help ...

View Article

react-navigation v6 equivalent of push

I need to push multiple instances of the same screen to the stack, and .navigate() does not achieve this. It just navigates to the instance already on the stack (same as a no-op). .push has been...

View Article


Image may be NSFW.
Clik here to view.

react native typescript 'string' is not assignable to parameter of type...

[I keep getting the error that says 'string' is not assignable to parameter of type 'never' in react native typescript and I don't know why. Can someone help me fix this bug.Thank you in advance.code...

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

Image may be NSFW.
Clik here to view.

Disable Past and Future Dates using React-FlatPicker

I've two date pickers From and ToRequirement:From : Months <= 12PastMonthsFromNow should be DISABLETo : Months > MonthsFromNow should be DISABLEOnly enable past 12 months from now.Example: From...

View Article

how to make a button not work until another React Native TypeScript button is...

I need another button to start working after pressing the button. Here is the code->the firs partimport React, {useState} from "react";export const PayButton = () => { const [hasBeenPressed,...

View Article
Browsing all 6295 articles
Browse latest View live