
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@1ziton/react-native-photo-picker
Advanced tools
$ npm install @1ziton/react-native-photo-picker --save
$ react-native link @1ziton/react-native-photo-picker
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-photo-picker and add RNYizhitongPhotoPicker.xcodeprojlibRNYizhitongPhotoPicker.a to your project's Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MyApplication.javaimport com.dashixiong.camera.CameraPackage;; to the imports at the top of the filenew CameraPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':@1ziton_react-native-photo-picker'
project(':@1ziton_react-native-photo-picker').projectDir = new File(rootProject.projectDir, '../node_modules/@1ziton/react-native-photo-picker/android')
android/app/build.gradle:
implementation project(':@1ziton_react-native-photo-picker')
import CameraMoudle from '@1ziton/react-native-photo-picker';
// 注册百度云参数
CameraMoudle.regiestWithBucketUrl(
'bucketUrl',//百度云地址
'bucketName',//bucketName
'accessKeyId',
'secrekKey',
'httpversion'//version参数可不传
);
CameraMoudle.openNative(0);//拍照
CameraMoudle.openNative(1);//相册选取一张照片
CameraMoudle.multiChoise(2, maxChoise)//相册多选图片
//获取图片URL
let eventEmitter = new NativeEventEmitter(CameraMoudle);
this.listener = eventEmitter.addListener('photo', (params) => {
if (params === 'NoChoose') {
} else if (params !== '(null)' && params && params !== 'NoChoose') {
console.log(params);//返回图片数组
} else {
console.log('图片上传失败,请重试');
}
});
FAQs
## Getting started
The npm package @1ziton/react-native-photo-picker receives a total of 115 weekly downloads. As such, @1ziton/react-native-photo-picker popularity was classified as not popular.
We found that @1ziton/react-native-photo-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.