android

  • The reason I ask is that my app uses the camera to scan barcodes, and this isn’t supported in the iOS Simulator.
  • Or perhaps use a 3rd party module that doesn’t render the camera if in a simulator…
  • Browse other questions tagged android ios react-native or ask your own question .

Read the full article, click here.


@ModusJesus: “Interesting patterns to detecting if you are running #ReactNative on Device or simulator from #Javascript #reactJS”


The easiest solution I can think of, which does not require creating a native module (or modifying an existing one), would be to pass this parameter as a react component property.


android