hunk.code_window:     )
     }
     @Test(expected = JavaScriptEvaluateException::class)
     fun should_throw_if_js_value_cannnot_be_passed() = withJSIInterop(
       inlineModule {
         Name("TestModule")
         Function("f") { _: Int -> }
       }
     ) {
       evaluateScript("expo.modules.TestModule.f(Symbol())")
     }
     @Test
     fun int_array_should_be_convertible() = withJSIInterop(
       inlineModule {
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep
hunk.after_edit: //  @Test(expected = JavaScriptEvaluateException::class)
   //  fun should_throw_if_js_value_cannnot_be_passed() = withJSIInterop(
   //    inlineModule {
   //      Name("TestModule")
   //      Function("f") { _: Int -> }
   //    }
   //  ) {
   //    evaluateScript("expo.modules.TestModule.f(Symbol())")
   //  }
  
hunk.file_path: packages/expo-modules-core/android/src/androidTest/java/expo/modules/kotlin/jni/JSIFunctionsTest.kt
hunk.type: replace
file: ---
  title: Sensors
  sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-46/packages/expo-sensors'
  packageName: 'expo-sensors'
  ---
  
  import { APIInstallSection } from '~/components/plugins/InstallSection';
  import PlatformsSection from '~/components/plugins/PlatformsSection';
  
  **`expo-sensors`** provides various APIs for accessing device sensors to measure motion, orientation, pressure, magnetic fields, and step count.
  
  <PlatformsSection android emulator ios simulator web />
  
  ## Installation
  
  <APIInstallSection />
  
  ## Configuration
  
  Starting in Android 12 (API level 31), the system has a 200ms limit for each sensor updates. If you need a update interval less than 200ms, you should add `<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS"/>` to **AndroidManifest.xml**.
  
  ## API
  
  ```js
  import * as Sensors from 'expo-sensors';
  // OR
  import {
    Accelerometer,
    Barometer,
    Gyroscope,
    Magnetometer,
    MagnetometerUncalibrated,
    Pedometer,
  } from 'expo-sensors';
  ```
  
  For more information, please see the documentation for the sensor you are interested in:
  
  - [Accelerometer](accelerometer.mdx)
  - [Barometer](barometer.mdx)
  - [Gyroscope](gyroscope.mdx)
  - [Magnetometer](magnetometer.mdx)
  - [Pedometer](pedometer.mdx)
  