Skip to content

martinmoec/Fable.ReactNative.DeviceInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fable.ReactNative.DeviceInfo - Fable bindings for react-native-device-info

Provides Fable bindings for react-native-device-info. Some functions are only available for a specific OS, see the react-native-device-info documentation for further information. Promises and platform specific code is wrapped within promises returning a Result<'a,string>. You can also access all functions directly through Globals.DeviceInfo if you wish to do so.

Setup

Install nuget package: paket add Fable.ReactNative.DeviceInfo

Install npm module: yarn add react-native-device-info

For ios: cd ios && pod install

Note that some functions, like getBatteryLevel will require specific permissions and/or configurations. See the react-native-device-info documentation for further information.

Sample

See the sample folder. The sample folder contains only a single F# file, simulating a sample Fable.React.Native project, and is not runnable. For instructions on how to set up a F# React Native project see this how-to.

Sample

About

Fable bindings for react-native-device-info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages