when starting my App on my iOS device I get this error: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but gor: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up defa…
Tag: react-native
Require non-static image in React Native
I have a special folder with images in my React Native application. Path to these pictures is stored in the special object that is passed as prop to the Card component. So, I can’t use require, because it uses only static path string. How can I use load these images from my props? There is my try: Answe…
React Native BottomTabNavigator remove white space
I’m facing a problem with my Bottom Tab Navigator. I get a white space between my tabs and the end of the screen of my iPhone 11 Simulator. On a iPhone 8 Simulator I don’t have these white space. There is also a small white space above the Tabs. How can I remove this space? I’m not able to f…
Why aren’t my checkboxes updating using Redux?
I am working on a React-Native mobile app using Redux to manage the state. I have filter to manage the data displayed. I am using Redux to manage all the data in the filters. It’s quite simple: I click on the checkbox, it gets clicked. I click on the checkbox again (guess what), it gets unclicked. When …
Text Sliders front-end using React
I’m learning basics of react and currently im exploring certain problem statements available on the internet. One such problem statement required me to create a react app for a text slide creator with previous , next and reset buttons. I was able to create till here – My app.js file looks somethin…
How to resolve the build error on react-native?
I’m trying to make a build environment to make an android app but I haven’t been able to succeed to build the project. The build log is as follows, It looks exactly same as the link below and I did the same thing but I can’t resolve the problem and the log that it makes is always the same. h…
Is there a anything in react native that responds to a mouse hover over event?
Using the latest react-native library. Is there a way to respond to a mouse hovering over a component in react native? I can’t find any components in the library that use this capability Answer I assume you are using react-native-web ? mouse hover events happen on the web. EDIT: as @user56reinstatemonic…
Difference b/w React Typescript , React JavaScript and React Native?
I have confusion about React JavaScript , React Typescript and React Native. I just have idea that we use React Native for mobile applications and and React (Javascript,Typescript) for web applications. Can someone exactly draw the difference between them ? Which parent library/framework those use ? Like Angu…
React | JavaScript : Need to compare two objects
Objective: I need to check if the form has been edited by the user or not. If yes, then I will call the axios.put() function. Issue: Since in JS, obj1 = { name: “John “} !== obj2 = { name: “John” } I am looking for a better way to compare two objects. My way(seems inefficient) : I woul…
Customize Default Splash Screen of react-native
Is there any way to remove the default Splash screen of react-native. Or Coustomize the Default Splash Screen. Like I want to a add a loading bar and fade effects in splash screen. And I want to create 2 splash screens for company & app. Is it possible to change the loading time? Answer If you want to set…