So i am making a custom multiple select component . when you click on the TextInput the dropdown will appear(the items in the dropdown comes from flatlist component) and from that drop down you can search the item you want to select and after selecting a tag will appear beside the input field. This selected tag is also comming from
Tag: react-native
Does react-native support jdk 17?
So I have been having some problems with launching the initial react-native template project on android. And after consulting someone I was told that jdk 17 is not supported. But I really don’t want to downgrade as this could break other things that I already have and work with. To be specific this is the error I get: I have
Maximum Call Stack Size exceeded and ENOENT error while using context
I get this error whenever I try to use React context,provider or useContext, any of them causes this On App: On terminal: Answer Path to context is wrong. Basically I import ContextFile.js to index.js, and from index.js access to many things. index.js was importing Context from itself, and not from ContextFile. At fist when I corrected the files, it didn’t
React native custom fonts not loading in, not sure why?
I did everything like in the documentation, but my Custom Fonts do not want to load in. I could wait for hours and nothing happens… This is my App.js: And this is my useFont.js There is no error printed in the console, so I have no clue what I am doing wrong :/ Answer I’m not sure, but maybe that
React native flatlist return only one item from firestore
I’m new with react native. I’m using a flatlist to render data from firebase (v9). Everything works well, there isn’t any error but, the list show only one item. After searching on differents topic, I think the problem is from the keyExtractor. But i don’t know how to solve it. The Key Extractor from the code : Here is the
react native useEffect run into dead loop:
} after the code is executed ,the terminal continues showing : i have confusion about this ,useEffect function should be rendered once .However ,it seems continuing to be redered . Answer You did not add a dependency array to the useEffect function. Therefore, it is bound to be an infinite reRendering. And react does not recommend let. Use the status
Select an item from dropdown and use that value in another component in React native
I’m just trying to do something like that (when user select an item, then navigate to another component): Typically when we want to pass value between two component we use props : But in this case I have o idea how can I do it without invoked AirScreen Answer Just do something like this: You might want to read the
How to check if any bluetooth device is connected in react native
I’ve been attempting to detect whether a bluetooth device is connected to an android phone once a button is clicked. If detected, I would like to interact with this device from within my app. The device I’m talking about is http://www.senanetworks.com/sd1000-01.html . I’ve used the example code of https://www.npmjs.com/package/react-native-ble-manager to test it out, but unfortunately, it’s not picking up this
React Native app’s expo-sqlite callback not executed until app refresh
I have a simple app that makes a connection to a sqlite database, reads results from that database, and displays them. Here is the app: banana-dict.db is a preexisting database I’m using for this app. I’ve found that if I start the app and open it on my phone, the dicts state (ie, results of a query on the db)
Firestore Array of map not updating
So I’m working on a personal project to learn react-native and Firestore. I have a DB like this: And I want my code to add a new battery in the array batteries. The elements in the array are just a map{string, string} The problem is that when I update the array with a new brand that’s work but if I