Skip to content
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

feat: add hasLightSensor react method (android) #3

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

kvs-coder
Copy link

Why?

The purpose of this PR is to extend the functionality for the ambient light sesnor usage, respectively to check if the sensor is integrated inside the device

How?

By adding a new @ReactMethod in java module and wrapping it with js and ts let the method be called on the react-native side of the app to check if the sensor exists. This works only for Android OS.

@Cshayan
Copy link
Owner

Cshayan commented Jun 5, 2023

Hey @kvs-coder thanks for the PR. Looks good to me. Will release a new version of it in couple of days.

@Cshayan Cshayan merged commit d1797d8 into Cshayan:main Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants