react-native-open-maps with iOS
I am using openMap to open a map in my react native project. When I run it in iOS simulator, it opens on Apple Maps.On a real phone, will it still open Apple Maps or will it open Google Maps if...
View ArticleCan't render elements from mutated Array - React
So, the problem I've faced is that when I click delete button at any index it just deletes last elementfor example, if I press first delete button, it should remove first input and the delete button,...
View ArticleReact Native/Typescript - Error Module '"react-native"' has no exported...
I cannot seem to remove this error message and don't know exactly where it comes from. Pressable is indeed a working component, but the thing that shouts at me doesn't understand that. What is it and...
View ArticleWhy does the string come as an object React Native?
I draw a string value through api and I want to print it in View. But the incoming string value comes as Promise. How can I prevent this?"Invariant Violation: Objects are not valid as a React child...
View ArticleReact navigation V5 header button usage
I have react navigation screen as follows .<Stack.Screen name="Home" component={HomeScreen} />I need to navigate another screen using a right header button how can i do this.I'am using react...
View ArticleReact Native : how to configure webpack, which loader should I add?
My React Native app contains a Video component from ReactXP library. My app doesn't contain a lot of code, there is only 3 important files -> App.tsx which contains a VideoContainer component...
View ArticleHow to test React native Hooks component - JEST & React Native testing Library
I am trying to test my react native hooks component, I am able to access/test use state variable but not able to test arrow methods in my functional component, kindly provide some suggestions.Attached...
View ArticleTyping accessibilityRole
Using accessibilityRole in react native do I have to type out all the possible strings or is there an import that I can use?createAccessibilityRole(parent: Element): string { if(isLink) return 'link'...
View ArticleChange language based on user selection on expo
Just wondering if there's any way to change the language of an expo app with typescript based on user selection (so not device language).I read through the docs on expo...
View ArticleReact-Native-Reanimated and React-native
After creating minimal react-native app with expo and typescript i got a lot of strange errors:App working on web but crashes with android. I`m getting expo error on my Xiaomi S2..There is a code i'm...
View ArticleHow to update state properly in react hooks
So, The problem is that whenever I press the delete button, it just removes the deletes the last input and the button regardless of the index. I've tried to change the key to key={${index}${name}}`,...
View ArticleCan not build react-native app after upgrading to 0.63.3
I upgraded to RN 0.63.3 from 0.61.5The problem with typescript during ./gradlew assembleRelease and running from Xcode. What can be the reason...
View ArticleReact Native platform specific import only works with relative paths
I have a platform specific component split into 2 files:src/components/Foo/Foo.android.tsxsrc/components/Foo/Foo.ios.tsxI want to import it in a file:src/screens/Login.tsxusing:import Foo from...
View ArticleHow to create unique keys for react Components
So, I've got this component here, which If I don't give unique keys, React renders it incorrectly.I can't give this: key={${name}${index}} as a key because name for each element can be edited so this...
View ArticleTyping out all possible strings to use accessibilityRole?
I'm using accessibilityRole in React Native. Do I have to type out all the possible strings, or is there an import that I can use?createAccessibilityRole(parent: Element): string { if(isLink) return...
View ArticleTypeError: (0 , _taggedTemplateLiteralLoose2.default) is not a function
What is this error? so unhelpfulthis is the error im seeing in the simulatorit's nothing to do with that styled component because 1) it was working for ages beforehand 2) it just randomly stopped...
View Articleinstalling d3ML in React without npm
I came across d3ML.js. However, it's not in the npm registry so I can't directly install it. Is there any other to install & use it in a React.js project?
View ArticleFull screen background image in React Native app iphone 11
I'm currently trying to set a full background image on my login view. I want to be able to fill my Background image on the whole screen for the iphone 11. I've read a bit a bout safeAreaView and...
View ArticleIndex.js imports .tsx file after build specifically on windows
I'm trying to build a module I want to modify and use in my project. I cloned the module, installed the dependencies and built it but when I tried to run it I kept getting an error Error: Unable to...
View Articleaxios post request in react native and react app with JSON Stringify and blob
I am making an app in which I am calling an API end point in react native but I am getting this error but in the web app (its done with react) it doesn't show any error, Here is the web app code in...
View Article