create-react-native-app icon indicating copy to clipboard operation
create-react-native-app copied to clipboard

QR code won't scan

Open timurtu opened this issue 9 years ago • 23 comments

After creating an app and running yarn start the QR code gives no feedback when scanning on my iPhone.

timurtu avatar Mar 14 '17 02:03 timurtu

Did you install the Expo app?

jesseruder avatar Mar 14 '17 02:03 jesseruder

Yeah I don't get any feedback when I scan the QR code with the Expo app

timurtu avatar Mar 14 '17 02:03 timurtu

Hm not sure why that's happening. Can you upload a screenshot of the QR code? If you can't get it working you can type the url in manually - just go to the Explore tab in Expo and then type the url in the search bar.

jesseruder avatar Mar 14 '17 02:03 jesseruder

Yeah I just tried that it loaded here's the screenshot.

screen shot 2017-03-13 at 10 24 50 pm

timurtu avatar Mar 14 '17 02:03 timurtu

It looks like it might be a little squished horizontally. @dikaiosune do you think we can do anything about that?

jesseruder avatar Mar 14 '17 02:03 jesseruder

Interesting! I suspect that the horizontal scaling isn't the actual problem (I've seen it work well on much more squished consoles), but rather the contrast between the dark and light elements is. IntelliJ/Webstorm's terminal appears to have interesting ideas about how to render bash color codes!

I'm not sure what we can do about this. It might be possible by changing the Webstorm color theme, the font, or by trying in a different terminal.

anp avatar Mar 14 '17 02:03 anp

Using a terminal worked great

timurtu avatar Mar 14 '17 02:03 timurtu

Glad to hear it!

anp avatar Mar 14 '17 02:03 anp

Sorry, I'm going to leave this open as we need to at the very least document this issue.

anp avatar Mar 14 '17 02:03 anp

Is there a way that the QR code can be generated into a PNG (or something similar)? So that it could be pasted into a GitHub repo or Gist so users can quickly open it within Expo.

tmhn avatar Mar 14 '17 16:03 tmhn

While it's definitely possible from an implementation perspective, I'm not sure we want to add any more complexity to the startup scripts.

Generally if you want to share the app with someone they'll need to be on the same LAN and I'm mostly thinking that it's not unreasonable to expect them to be able to physically scan the phone.

anp avatar Mar 14 '17 17:03 anp

Increased screen brightness, disabled redshift and maximised terminal worked for me!!

bhaskars2904 avatar Feb 02 '18 06:02 bhaskars2904

Nothing worked. Had to tap the search icon in Expo and enter the url to open my own react native app.

freemant2000 avatar Feb 16 '18 06:02 freemant2000

I had this issue, and it ended up being the slightly transparent terminal window I was using was distorted by the content behind it

brentoboy avatar Feb 16 '18 17:02 brentoboy

Had the same issue. Re-installing the Expo app on my device, and restarting (clear cache) the packager did it. Relieved!

SirPhemmiey avatar Apr 07 '18 11:04 SirPhemmiey

I had the sane issue and I tied the solutions above and still doesn't work

hayanisaid avatar Apr 08 '18 16:04 hayanisaid

same as @hayanisaid here.

samnet avatar Apr 14 '18 17:04 samnet

I experience this issue only when running in my IDE's terminal. If I switch and use iterm2 or OSX default terminal it works fine. It appears to be an issue with "squishing" the QR image's width.

crobinson42 avatar May 29 '18 18:05 crobinson42

It is really funny, but all you need to do just switch your ide theme on light :D

just0110 avatar Jul 10 '18 09:07 just0110

True, the dark theme in IDE makes the reverse of colors =)

SmelayaPanda avatar Jul 30 '18 17:07 SmelayaPanda