reeq-dev / react-native-device-brightness

React-Native library which allows you to change devices brightness level
MIT License
2 stars 1 forks source link

How to use useUnmountBrightness #1

Closed rayhk6 closed 1 year ago

rayhk6 commented 1 year ago

I have no idea how to use the useUnmountBrightness hook with param. Could you please add to example folder? Thanks.

reeq-dev commented 1 year ago

Example folder updated. Make sure you launch on real device (simulator wont change brightness): https://github.com/reeq-dev/react-native-device-brightness/blob/2946dc6ffddb368a6ea9bc0df03efffc88ad8481/example/src/App.tsx