How can I call a C++ method from react native?
I want to add a C++ file and call its methods from react-native repository.I have already tried some of the answers which says to install ffi-napi but that is not working. There are some specific tools...
View ArticleType 'string' is not assignable to type'"CommodityDetails"' | Type...
Hy there, here is my code, please look at it and please tell me why I'm getting this error. I'm new to react native type RootStackParamList = { MandiBhaavHome: undefined; MandiDashboard: {mandi: {name:...
View Articlewhy app created with react native cli command contain type script in app.js...
import type {Node} from 'react';const Section = ({children, title}): Node => { const isDarkMode = useColorScheme() === 'dark'; return (<View style={styles.sectionContainer}><Text style={[...
View ArticleProperty 'children' does not exist on type 'IntrinsicAttributes &...
ThemeProvider from react-native-elements in not allowing childrens.Here is the code :const Root = () => { const {theme, isNewUser} = Settings.useContainer(); const darkMode = useMemo(() => theme...
View Article"Unable to resolve path to module" error in VSCode for React Native Expo...
I'm developing a react native app in Expo and have recently received the following error messages in VSCode: "Unable to resolve path to module"The error message is not displayed during relative imports...
View ArticleReact Native [TypeError: Cannot read property 'startsWith' of undefined]?
I'm getting this error when I put my Javascipt code to a Typescript project.In Javascript project its worked fine but when I put the code into a Typescript project I got the error.Is there any mistake...
View Articlereact-native-popup-menu MenuProvider typescript IntrinsicAttributes
I want to achieve drop down options in Flatlist,I have used React native popup Menu and in App.tsx I have declared the entry point as MenuProvider.I am getting this error.Type '{ children: Element[];...
View ArticleCan anyone can excute this project i have tried many times but it didn't work...
Can anyone can excute this project i have tried many times but it didn't work its a instagram reels clone https://github.com/kartikeyvaish/expo-instagram-reelspls try to start try projecttry one time
View ArticleHow to add refs to an array in React Native?
I want to store a ref in each elements of my arrays.Can I insert it direcrly in my array (modifying it) ? const item = [ { id: "1", name: "Text1", }, { id: "2", name: "Text2", },];
View ArticleReact Native : How to create code snippets that can be copy/pasted
I want people who go on my site to be able to copy my the code snippets that I put in here, preferably with the code having colors like for a text editor. I've seen it on some website and blogs but I...
View ArticleTypescript returns "and" instead of "or" for parameters of functions
I'm currently developing a React Native app with Typescript.I have a massive data download from server and a function for saving all data in it's corresponding table.static insertVariousTable = (table:...
View ArticleCould not find a declaration file for module 'styled-components/native'
If you add styled-components to your React Native project, there's a sub-directory for the native components specifically:import styled from 'styled-components/native`;export const Container =...
View ArticleLocalhost:8080 showing blank page with react-native-web
i followed a tutorial for adding web support to a react native app. using react-native-web and webpack. looks like it works for everyone. but for me, i get a blank web page. even though it works just...
View ArticleTypeScript : What is the right way to define types
I'm a little confused with the assignment of typescript types.In my example I want to know how I define the type of props that will not be "any type" and also how I define the type of the title,...
View ArticleReact Native Error Class AppleTypeCRetimerRestoreInfoHelper is implemented
I get this error while building the application, anyone know how to fix this problem?
View ArticleReact Native Elements cannot be used as a JSX component - Typescript
'Text' cannot be used as a JSX component.Im using the Text elements as example but it happens for all react native elements.Code example: return (<><TechnicianDetailCard...
View Articlehow to change syntax Typescript to javascript React native
i'm building Raect Native with Expo, trying to make custom dropdown and i find and article wit an awesome expiation how to do that herethe code written with typeScript syntax, but my project using a...
View ArticleError React Native Typescript : Element type 'MutableRefObject'
I have this error with my code :Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'MutableRefObject<never[]>'Howether I can't resolve it by...
View ArticleReact Native custom drop down component
i'm building Raect Native with Expo, trying to make custom dropdown and i find and article wit an awesome expiation how to do that herei want to build an drop down able the user select their birthday...
View ArticleWhat is the most convinient way to organize the Typography and the Colors files?
I have a React Native Project (+ Typescript), where I collect all the StyleSheet values for Typography in one separate file (Typography.ts). It looks something like this:const typography = {buttonText:...
View Article