Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't render map on web app #23

Open
ML-Chen opened this issue Feb 23, 2021 · 0 comments
Open

Don't render map on web app #23

ML-Chen opened this issue Feb 23, 2021 · 0 comments
Labels
backlogSpring2021 Issues back logged from Spring 2021 low priority

Comments

@ML-Chen
Copy link
Collaborator

ML-Chen commented Feb 23, 2021

Our web app has completely stopped working since we added the map, right after I got it to deploy to Netlify 😞. oh well, it was good while it lasted. now you gotta run it in Expo Go.

One solution is to just not render the map if the platform is on the web. Something like this code snippet might help you get started on the right track.

import { Platform } from 'react-native';
Platform.OS === 'ios'

Another approach is to follow the instructions at https://docs.expo.io/versions/latest/sdk/map-view/#web-setup

Not super high priority because having the web app working is not a priority, especially since Expo Web is still in beta and many features might not work properly.

Here's the error from trying to open the web app from the development server:
image.png

@izou3 izou3 added the backlogSpring2021 Issues back logged from Spring 2021 label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlogSpring2021 Issues back logged from Spring 2021 low priority
Projects
None yet
Development

No branches or pull requests

2 participants