Gathering detailed insights and metrics for react-native-image-cropper-thanhtq
Gathering detailed insights and metrics for react-native-image-cropper-thanhtq
Gathering detailed insights and metrics for react-native-image-cropper-thanhtq
Gathering detailed insights and metrics for react-native-image-cropper-thanhtq
npm install react-native-image-cropper-thanhtq
Typescript
Module System
Node Version
NPM Version
Java (54.67%)
Objective-C (44.78%)
JavaScript (0.41%)
Ruby (0.13%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
8 Stars
46 Commits
5 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Oct 26, 2020
Latest Version
0.0.6
Package Id
react-native-image-cropper-thanhtq@0.0.6
Unpacked Size
5.88 MB
Size
1.72 MB
File Count
330
NPM Version
6.4.1
Node Version
10.11.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
do it manually as described below:
npm install react-native-image-cropper-thanhtq --save
Libraries
and click Add Files to "Your Project Name"
Look under node_modules/react-native-image-cropper-thanhtq
and add TOCropViewController.xcodeproj
.libImageCropperManager.a
to Build Phases -> Link Binary With Libraries
Run npm install react-native-image-cropper-thanhtq --save
You can use the React Native CLI to add native dependencies automatically:
$ react-native link react-native-image-cropper-thanhtq
In android/settings.gradle
1... 2 3include ':react-native-image-cropper-thanhtq' 4project(':react-native-image-cropper-thanhtq').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-cropper-thanhtq/android')
In android/app/build.gradle
1... 2 3dependencies { 4 ... 5 6 compile project(':react-native-image-cropper-thanhtq') 7}
Register module (in MainApplication.java
)
1import com.cropimagepicker.cropper.ImageCropperPackage; // <--- Import Package 2 3public class MainApplication extends Application implements ReactApplication { 4 5 private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 6 @Override 7 protected boolean getUseDeveloperSupport() { 8 return BuildConfig.DEBUG; 9 } 10 11 @Override 12 protected List<ReactPackage> getPackages() { 13 return Arrays.<ReactPackage>asList( 14 new MainReactPackage(), 15 new ImageCropperPackage() // <--- Initialize the package 16 ); 17 } 18 }; 19 20 @Override 21 public ReactNativeHost getReactNativeHost() { 22 return mReactNativeHost; 23 } 24} 25
1import ImageCropper from 'react-native-image-cropper-thanhtq' 2 3let options = { 4 guideLines: 'on-touch', 5 cropShape: 'rectangle', 6 title: 'CROP AVATAR', 7 cropMenuCropButtonTitle: 'Done', 8 uri_image: response.path, 9 fixAspectRatio: true 10 } 11 ImageCropper.selectImage(options, (responseCrop) => { 12 if (responseCrop && responseCrop.uri) { // uri = 'file://' + path 13 console.log("UIr crop", responseCrop.uri) 14 // crop succeeded 15 } else if(responseCrop.error){ 16 //error handling 17 } 18 });
1import ImageCropper from 'react-native-image-cropper-thanhtq'; 2let options = { 3 urlBase64Image: 'data:image/jpg;base64,' + response.data, 4 path: response.uri 5 } 6ImageCropper.showViewCrop(options, (data) => { 7 let encodedData = data 8 let newUri = `data:image/jpg;base64,${encodedData}` 9 })
----------------------END------------------------
No vulnerabilities found.
Reason
binaries present in source code
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
60 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More