| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 26-Sep-2023 | - | ||||
| android/ | H | 26-Sep-2023 | - | 657 | 481 | |
| build/ | H | 26-Sep-2023 | - | 626 | 441 | |
| ios/ | H | 26-Sep-2023 | - | 418 | 335 | |
| scripts/ | H | 26-Sep-2023 | - | 167 | 107 | |
| src/ | H | 26-Sep-2023 | - | 939 | 677 | |
| .eslintrc.js | H A D | 26-Sep-2023 | 103 | 3 | 1 | |
| .npmignore | H A D | 26-Sep-2023 | 183 | 12 | 8 | |
| CHANGELOG.md | H A D | 26-Sep-2023 | 16.9 KiB | 380 | 204 | |
| README.md | H A D | 26-Sep-2023 | 1.7 KiB | 44 | 27 | |
| babel.config.js | H A D | 26-Sep-2023 | 104 | 3 | 1 | |
| expo-module.config.json | H A D | 26-Sep-2023 | 202 | 11 | 10 | |
| package.json | H A D | 26-Sep-2023 | 1.1 KiB | 47 | 46 | |
| tsconfig.json | H A D | 26-Sep-2023 | 217 | 10 | 9 |
README.md
1# expo-constants 2 3Provides system information that remains constant throughout the lifetime of your app. 4 5# API documentation 6 7- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/constants.mdx) 8- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/constants/) 9 10# Installation in managed Expo projects 11 12For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/constants/). 13 14# Installation in bare React Native projects 15 16For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing. 17 18### Add the package to your npm dependencies 19 20``` 21npx expo install expo-constants 22``` 23 24#### Monorepo Support 25 26In a monorepo, the `expo-constants` package might be in a different folder than the native scripts are expecting. You can easily symlink the node module to your app's local `node_modules` folder by doing the following: 27 28- Follow the setup instructions for [`expo-yarn-workspaces`](https://github.com/expo/expo/tree/main/packages/expo-yarn-workspaces). 29- Add the following configuration to your app's `package.json`: 30 31```json 32{ 33 "expo-yarn-workspaces": { 34 "symlinks": ["expo-constants"] 35 } 36} 37``` 38 39- Finally, run `yarn` in the app folder to create symlinks to `expo-constants` in your app's local `node_modules` folder. 40 41# Contributing 42 43Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing). 44