
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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.xcodeproj
libRNYizhitongPhotoPicker.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MyApplication.java
import 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
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.