-
-
Notifications
You must be signed in to change notification settings - Fork 226
Adding Proximity Sensor #454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kibolho
wants to merge
300
commits into
react-native-sensors:master
Choose a base branch
from
kibolho:kibolho/proximity-sensor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Adding Proximity Sensor #454
kibolho
wants to merge
300
commits into
react-native-sensors:master
from
kibolho:kibolho/proximity-sensor
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add Docusaurus for website
* initialize empty example for accelerometer * display values * add sensor data * initialize empty example * add basic example for moving the image * endless image example * remove useless kitten * remove comments * prettier
* raw gravity added for android * raw gravity added for ios * prefixes * ignore vscode config * prefixes
* chore: move CI to github actions * refactor: format files
…sors#352) Co-authored-by: Renovate Bot <bot@renovateapp.com>
* prefix refrence * prefix
* Replace nativeApis map with an object * Remove toLocaleLowercase to make it compatible with hermes engine * Update rnsensors.js * Update sensors.js Co-authored-by: Rubina <rubina.shakkyan@gmail.com>
Co-authored-by: Kennedy Mumo <kemumo@microsoft.com>
* fix RN warning about event listeners * stop emitting events if there are no listeners on Android
* Add react native windows support for RNSensors * Bump react native version * Updated code to be more concise and added assertions in place off missing functionality * Fix linking issues and added missing types to std::max * Added barometer and magnetometer support for windows. Updated example application to include windows implementation and upgraded android * Remove local linked in favor of metro config resolution * Fix broken metro config and move basic sensor example to functional components * Fix iOS basic sensor example * Fix windows module reference * Fix react native windows module name mismatch * Fix react native windows collision and cleaned up header files * Added event listener stubs for windows * Lint fixes * Added event listener stub for android * Upgrade react-native to address gradle build issue * Fix native module crash caused by react-native reuse * Fix windows autolinking bug * Added sensor cleanup on react native event listener cleanup * Remove redundant module check in Windows * Add event listener counter * Add missing event listener count * Add missing event listener count in AccelerometerModule --------- Co-authored-by: Daniel Schmidt <danielmschmidt92@gmail.com> Co-authored-by: Kennedy Mumo <kemumo@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Android

Float result: range 0 to 10 cm
IOS

Boolean result: Near = true / Far = false
