pluralsight-react-native-getting-started
pluralsight-react-native-getting-started copied to clipboard
api.js file from Lesson 4: Expo.Constants.manifest
At around 2:04 of the Fetching data from an HTTP API lesson, where you say const { manifest } = Expo.Constants;
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:
This is how the error looks in the iOS simulator:
Could you shed some light on this error?
declare the following:
import Constants from 'expo-constants';
const { manifest } = Constants;