UNPKG

1.29 kBMarkdownView Raw
1# expo-sensors-interface
2
3An interface for expo-sensors.
4
5# Installation
6
7This package is pre-installed in [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects. You may skip the rest of the installation guide if this applies to you.
8
9For bare React Native projects, you must ensure that you have [installed and configured the `@unimodules/core` package](https://github.com/unimodules/core) before continuing.
10
11### Add the package to your npm dependencies
12
13```
14npm install expo-sensors-interface
15```
16
17### Configure for iOS
18
19Add the dependency to your `Podfile` and then run `pod install`.
20
21```ruby
22pod 'EXSensorsInterface', path: '../node_modules/expo-sensors-interface/ios'
23```
24
25### Configure for Android
26
271. Append the following lines to `android/settings.gradle`:
28
29```gradle
30include ':expo-sensors-interface'
31project(':expo-sensors-interface').projectDir = new File(rootProject.projectDir, '../node_modules/expo-sensors-interface/android')
32```
33
342. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
35```gradle
36api project(':expo-sensors-interface')
37```
38
39# Contributing
40
41Contributions are very welcome! Please refer to guidelines described in the [contributing guide]( https://github.com/expo/expo#contributing).