Skip to content
Advertisement

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

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

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

Advertisement