| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ReScript bindings for react-native-device-info.
Exposed as ReactNativeDeviceInfo module.
@rescript-react-native/device-info X.y.* means it's compatible with react-native-device-info X.y.*
When react-native-device-info is properly installed & configured by following their installation instructions, you can install the bindings:
npm install @rescript-react-native/device-info
# or
yarn add @rescript-react-native/device-info@rescript-react-native/device-info should be added to bs-dependencies in your bsconfig.json:
{
//...
"bs-dependencies": [
"@rescript/react",
"rescript-react-native",
// ...
+ "@rescript-react-native/device-info"
],
//...
}{
.
"loading": bool,
"result": 'result,
}type powerState = {
batteryLevel: float,
batteryState: string, // | "unplugged" | "charging" | "full" | "unknown"
lowPowerMode: option(bool),
}unit => Js.Promise.t(string)unit => Js.Promise.t(float)unit => stringunit => Js.Promise.t(Js.Dict.t(bool))unit => Js.Promise.t(string)unit => Js.Promise.t(float)unit => Js.Promise.t(string)unit => stringunit => Js.Promise.t(string)unit => stringunit => stringunit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => stringunit => Js.Promise.t(string)unit => stringunit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(float)unit => Js.Promise.t(float)unit => Js.Promise.t(float)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(float)unit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(float)unit => stringunit => Js.Promise.t(string)unit => Js.Promise.t(powerState)unit => Js.Promise.t(float)unit => Js.Promise.t(string)unit => stringunit => Js.Promise.t(string)unit => Js.Promise.t(string)unit => Js.Promise.t(Js.Array.t(string))unit => stringunit => stringunit => Js.Promise.t(string)unit => Js.Promise.t(float)unit => Js.Promise.t(float)unit => Js.Promise.t(string)unit => stringunit => Js.Promise.t(float)unit => Js.Promise.t(string)unit => stringunit => boolunit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => Js.Promise.t(bool)unit => boolunit => Js.Promise.t(Js.Array.t(string))unit => Js.Promise.t(Js.Array.t(string))unit => Js.Promise.t(Js.Array.t(string))unit => option(float)unit => option(float)unit => asyncHookResult(string)unit => asyncHookResult(float)string => asyncHookResult(bool)unit => asyncHookResult(bool)unit => powerStateCheck the changelog for more informations about recent releases.
Read the contribution guidelines before contributing.
We want this community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.
| Back | FazBrowse Home | New Git URL |