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 ArticleSending 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 ArticleReact-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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleProblem 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 ArticleJSON.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 ArticleReact 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 ArticleError 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 ArticleHow 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 ArticleReact 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 ArticleTypescript/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 ArticleAdd 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 Articlereact-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 Articlereact 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 Articlereact 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 ArticleHow 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 ArticleDisable 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 Articlehow 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