expo-constants-interface

An interface for expo-constants.

Usage no npm install needed!

<script type="module">
  import expoConstantsInterface from 'https://cdn.skypack.dev/expo-constants-interface';
</script>

README

expo-constants-interface

An interface for expo-constants.

Installation

This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.

For bare React Native projects, you must ensure that you have installed and configured the @unimodules/core package before continuing.

Add the package to your npm dependencies

npm install expo-constants-interface

Configure for iOS

Add the dependency to your Podfile and then run pod install.

pod 'EXConstantsInterface', path: '../node_modules/expo-constants-interface/ios'

Configure for Android

  1. Append the following lines to android/settings.gradle:
include ':expo-constants-interface'
project(':expo-constants-interface').projectDir = new File(rootProject.projectDir, '../node_modules/expo-constants-interface/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
api project(':expo-constants-interface')

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.