Is docs on configuration with expo-constants up to date?

In the docs Configuration with app.json / app.config.js - Expo Documentation there are examples like

import Constants from 'expo-constants';

Constants.manifest.extra.fact === 'kittens are cool';

But typescript is telling me that it’s something like Constants.default.manifest2.extra.

(a little world about what .manifest2 vs .manifest would be helpful).

Hey @norfeldtconsulting,

Good catch! You are right, it is not up to date. Will be fixing it soon.

Please go through the updated docs on reading environment variables here.

If you are using SDK 45 and below with EAS update, I’d also suggest to check this page out.

Sounds great.

Thank you for the links. Been reading them a couple of times now - managing environment variables is a pretty complex thing in expo. Think I found a solution that works now - but it has taken a lot of error and trail to get here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.