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

api.js file from Lesson 4: Expo.Constants.manifest #1

Open
ltaljaard opened this issue Sep 18, 2019 · 1 comment
Open

api.js file from Lesson 4: Expo.Constants.manifest #1

ltaljaard opened this issue Sep 18, 2019 · 1 comment

Comments

@ltaljaard
Copy link

At around 2:04 of the Fetching data from an HTTP API lesson, where you say const { manifest } = Expo.Constants;
Untitled 33

This leads to a runtime error which reads "Cannot read property 'Constants' of undefined"

Expo.Constants is inspectable in Chrome debugging so it's not like Constants is unavailable:
Untitled 34

This is how the error looks in the iOS simulator:
Untitled 35

Could you shed some light on this error?

@zdwyer711
Copy link

declare the following:

import Constants from 'expo-constants';

const { manifest } = Constants;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants