Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fable bindings for react-native-image-picker

NotificationsYou must be signed in to change notification settings

martinmoec/Fable.ReactNative.ImagePicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Fable bindings forreact-native-image-picker.

Install

Add npm module:

yarn add react-native-image-picker

Install Pod

cd ios && pod install

Add NuGet package

dotnet add package Fable.ReactNative.ImagePicker

or addFable.ReactNative.ImagePicker to your paket.dependencies

Sample

This package provides bindings as well as the helper functionsshowImagePicker,launchCamera andlaunchImageLibrary which lets you call thereact-native-image-picker equivalents with a list of props in the familiarFable.React way. The functions has the following signature.

seq<ImagePickerProps>->(PickerResponse-> unit)-> unit

Provide a list of properties along with a callback function containing the response. SeeImagePickerProps andPickerResponse inFable.ReactNative.ImagePicker.fs and thereact-native-image-picker documentation for further details.

openFable.ReactNative.ImagePicker// open camera/library modalshowImagePicker[    Title"Select image"    MediaType MediaType.Photo](fun response->ifnot response.didCancelthen// do something with base-64 image        response.data)// open camera directlylaunchCamera[](fun response->// do something with response)// open library directlylaunchImageLibrary[](fun response->// do something with response)

About

Fable bindings for react-native-image-picker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp