Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hecom-rn/react-native-full-image-picker
Advanced tools
Readme
It is a react native UI component including a camera view and an album selection view. You can take photos, take video recording or select photo from photo library.
It supports:
Same UI on Android.
Install by Yarn:
yarn add react-native-full-image-picker
Install by NPM:
npm install --save react-native-full-image-picker
NOTICE: This library has no native code for iOS and Android. But you should also install native code of these libraries:
First import in the file:
import * as ImagePicker from 'react-native-full-image-picker';
It has three method:
ImagePicker.getCamera(options)
: Take photo from camera. (Camera Mode)ImagePicker.getVideo(options)
: Video recording. (Video Mode)ImagePicker.getAlbum(options)
: Select photo or video from photo library. (Photo Mode)options
is a object with these settings:
callback: (data: any[]) => void
: Callback method with photo or video array. data
is an uri array of photo or video. Do not use Alert
in this callback method.maxSize?: number
: The maximum number of photo count. Valid in camera or photo library mode.sideType?: RNCamera.Constants.Type
: Side of camera, back or front. Valid in camera or video.pictureOptions?: RNCamera.PictureOptions
: The options of RNCamera.takePictureAsync(PictureOptions)recordingOptions?: RNCamera.RecordingOptions
: The options of RNCamera.recordAsync(RecordingOptions)flashMode?: RNCamera.Constants.FlashMode
: Flash mode. Valid in camera or video.You can use react-native-general-actionsheet to show ActionSheet
by same API and UI with ActionSheetIOS
.
You can import page and change defaultProps
to modify settings globally:
import * as ImagePicker from 'react-native-full-image-picker';
ImagePicker.XXX.defaultProps.yyy = ...;
The XXX
is the export items of library. Following is the detail.
This is the outter navigator for all modes. You can change these properties of defaultProps
:
Name | Type | Description |
---|---|---|
okLabel | string | OK button text |
cancelLabel | string | Cancel button text |
deleteLabel | string | Delete button text |
useVideoLabel | string | UseVideo button text |
usePhotoLabel | string | UsePhoto button text |
previewLabel | string | Preview button text |
choosePhotoTitle | string | ChoosePhoto page title |
maxSizeChooseAlert | (num: number) => string | Max size limit alert message when choosing photos |
maxSizeTakeAlert | (num: number) => string | Max size limit alert message when taking photos from camera |
supportedOrientations | string[] | Supported orientations. Default is landscape and portrait |
This is page for taking photos from camera or recording video. You can change these properties of defaultProps
:
Name | Type | Description |
---|---|---|
maxSize | number | Default max number limit |
sideType | RNCamera.Constants.Type | Camera side type. Default is back |
flashMode | RNCamera.Constants.FlashMode | Flash mode. Default is off |
This is page for selecting photo from photo library. You can change these properties of defaultProps
:
Name | Type | Description |
---|---|---|
maxSize | number | Default max number limit |
autoConvertPath | boolean | Auto copy photo or not to convert file path to standard file path. Default is false |
assetType | string | Asset type. Please see CameraRoll Docs |
groupTypes | string | Group type. Please see CameraRoll Docs |
FAQs
Support taking photo, video recording or selecting from photo library.
The npm package @hecom-rn/react-native-full-image-picker receives a total of 5 weekly downloads. As such, @hecom-rn/react-native-full-image-picker popularity was classified as not popular.
We found that @hecom-rn/react-native-full-image-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.