Well, I was trying out react-native-sensors and a bunch of other libraries, for getting the real-time (kinda...) sensor data from my phone. This repository contains an app built with React Native.
- Utilizes accelerometer, magnetometer, gyroscope and light sensors.
- Displays real-time sensor data.
- Interactive button to start/stop sensor updates.
- Very Simple UI
- Automatic flashlight in the dark (Only on devices with a light sensor)
- Clone the repository:
git clone https://github.com/Saboten758/sensors.git
- Navigate to the project directory:
cd sensors
- Install the dependencies:
npm install
- Run the project:
npm start
This will start the Metro bundler and launch the project on an emulator or connected device.
- Open the app on your device or emulator.
- Navigate to the 'Sensors' button
- Press the "Press me!" button to start/stop sensor updates.
- Explore the real-time sensor data displayed on the screen.
- If your device houses a light sensor, you can also use the light sensor to turn on or off flashlight automatically!!
This is just a basic project,contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Peace!!