I’m new in redux I’m trying to connect redux with react native when I set all and In App.js i add <provider store={store}> it display me that error: TypeError: (0, _$$_REQUIRE(_dependencyMap[0], “redux”).createStore) is not a function. App.js cunter.js store.js reducer.js package…
Tag: react-native
React Native Firestore remove object in array
I cannot delete object inside my array of object in a document from Firestore. Here my Document I have tried that } Here the error msg: Someone can help me ? Or do you have any ideas how can i do for delete and update a object inside an array ? EDIT: Is fix, it was bad formating of JS
React Native TextInput not scroll in ScrollView
I write a code like this: but when i drag start in TextInput does not scroll! i drag like this picture: enter image description here but not scroll… Answer Problem solved. I just add this props to TextInput Components:
How to create a new generic object type that uses react-navigation’s generics?
In my React Native project I have multiple screens, every screen I have to import these types and set is as props type in my screen over and over again. Can it be more be simplified into like this? So from that I can only import one type only Answer The React Navigation lib offers a generic type already for
How to count selected checkboxes in React Native in functional component?
Whole code is here I render two flat list, One shows category name and other shows its sub categories with check box. Now i want, when user checked multiple or one check box of the sub catogories, The count shows in category like Health(count = 2) is category: if i checked pharmacy and hopital. 1 pharmacy 2 h…
TypeError: Cannot read property ‘navigate’ of undefine
Good evening to y’all!! I’m trying to click my “login or register button” but I’m receiving the following error: “TypeError: Cannot read property ‘navigate’ of undefined” I tried to do small changes within the project but no joy 🙁 This is my login screen M…
React-native-action-button : change position of action items
I am actually trying to use action buttons in React-native, but I have problems customizing action buttons position. Using react-native-action-button (“react-native-action-button”: “^2.8.5”), buttons are positioned vertically, just like that: Action buttons But, I would like something …
react-native-reanimated 2: cannot make a function with ‘worklet’ keyword (undefined is not a function)
im just learning react-native-reanimated v2, but i got an issue when creating a function with ‘worklet’ keyword. I installed react-native-reanimated v2 on a React Native bare project using npx react-native init myApp. I have followed all the react-native-reanimated v2 installation instruction, inc…
How to pass a key value into the onchange handler for a select dropdown
I’m mapping an array[key,val] to dynamically create dropdowns. I want to pass the key from the select onChange handler so I can store the selected value in the correct index in the array. How do I pass the key. Answer You could do something like this: This way can be used for all types of form fields, b…
How do you pass state variables between two separate functional components in React Native?
} I don’t know react native that well and I need help with the code writing itself. I tried using useContext() but it was written in react and I’m a beginner so I don’t really understand how to implement it. Also, there are no parent functions for this piece of code and both functions are in…