@oguzhnatly/react-native-image-manipulator 1.0.5 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +72 -0
- package/Example/.bundle/config +2 -0
- package/Example/.eslintrc.js +4 -0
- package/Example/.prettierrc.js +7 -0
- package/Example/.watchmanconfig +1 -1
- package/Example/App.tsx +58 -0
- package/Example/Gemfile +7 -0
- package/Example/Gemfile.lock +99 -0
- package/Example/__tests__/App.test.tsx +17 -0
- package/Example/android/app/build.gradle +83 -114
- package/Example/android/app/debug.keystore +0 -0
- package/Example/android/app/proguard-rules.pro +0 -7
- package/Example/android/app/src/debug/AndroidManifest.xml +9 -0
- package/Example/android/app/src/main/AndroidManifest.xml +6 -7
- package/Example/android/app/src/main/java/com/example/MainActivity.kt +22 -0
- package/Example/android/app/src/main/java/com/example/MainApplication.kt +45 -0
- package/Example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/Example/android/app/src/main/res/values/styles.xml +2 -1
- package/Example/android/build.gradle +11 -29
- package/Example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/Example/android/gradle/wrapper/gradle-wrapper.properties +3 -1
- package/Example/android/gradle.properties +25 -2
- package/Example/android/gradlew +189 -112
- package/Example/android/gradlew.bat +32 -24
- package/Example/android/settings.gradle +2 -1
- package/Example/app.json +1 -1
- package/Example/assets/tiktok.png +0 -0
- package/Example/babel.config.js +3 -0
- package/Example/index.js +3 -1
- package/Example/ios/.xcode.env +11 -0
- package/Example/ios/Example/AppDelegate.h +2 -10
- package/Example/ios/Example/AppDelegate.mm +31 -0
- package/Example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json +30 -15
- package/Example/ios/Example/Info.plist +9 -18
- package/Example/ios/Example/LaunchScreen.storyboard +47 -0
- package/Example/ios/Example/main.m +2 -8
- package/Example/ios/Example.xcodeproj/project.pbxproj +238 -1024
- package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme +2 -43
- package/Example/ios/Example.xcworkspace/contents.xcworkspacedata +10 -0
- package/Example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/Example/ios/ExampleTests/ExampleTests.m +19 -21
- package/Example/ios/Podfile +56 -0
- package/Example/ios/Podfile.lock +1448 -0
- package/Example/jest.config.js +3 -0
- package/Example/metro.config.js +43 -0
- package/Example/package.json +26 -6
- package/Example/tsconfig.json +3 -0
- package/Example/yarn.lock +5580 -3025
- package/README.md +218 -104
- package/android/build.gradle +34 -3
- package/android/src/main/java/com/{reactnativeimagemanipulator → oguzhnatly/rnimagemanipulator}/RNImageManipulatorModule.java +7 -4
- package/android/src/main/java/com/oguzhnatly/rnimagemanipulator/RNImageManipulatorPackage.java +112 -0
- package/android/src/paper/java/com/oguzhnatly/rnimagemanipulator/NativeImageManipulatorModuleSpec.java +33 -0
- package/build/fabric/NativeImageManipulatorModule.d.ts +12 -0
- package/build/fabric/NativeImageManipulatorModule.js +3 -0
- package/build/fabric/NativeImageManipulatorModule.js.map +1 -0
- package/build/index.d.ts +18 -17
- package/build/index.js +6 -3
- package/build/index.js.map +1 -1
- package/fabric/NativeImageManipulatorModule.ts +14 -0
- package/index.ts +28 -8
- package/ios/ImageUtils.h +6 -1
- package/ios/ImageUtils.m +180 -0
- package/ios/RNImageManipulator.h +10 -6
- package/ios/RNImageManipulator.mm +31 -0
- package/package.json +17 -2
- package/react-native-image-manipulator.podspec +11 -3
- package/tsconfig.json +1 -5
- package/Example/.babelrc +0 -3
- package/Example/.buckconfig +0 -6
- package/Example/.flowconfig +0 -70
- package/Example/.gitattributes +0 -1
- package/Example/App.js +0 -49
- package/Example/android/app/BUCK +0 -65
- package/Example/android/app/src/main/java/com/example/MainActivity.java +0 -15
- package/Example/android/app/src/main/java/com/example/MainApplication.java +0 -45
- package/Example/android/keystores/BUCK +0 -8
- package/Example/android/keystores/debug.keystore.properties +0 -4
- package/Example/ios/Example/AppDelegate.m +0 -35
- package/Example/ios/Example/Base.lproj/LaunchScreen.xib +0 -42
- package/Example/ios/Example-tvOS/Info.plist +0 -54
- package/Example/ios/Example-tvOSTests/Info.plist +0 -24
- package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-tvOS.xcscheme +0 -129
- package/android/src/main/java/com/reactnativeimagemanipulator/RNImageManipulatorPackage.java +0 -29
- package/index.d.ts +0 -26
- package/ios/RNImageManipulator.m +0 -200
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
|
4
|
+
const escape = require('escape-string-regexp');
|
|
5
|
+
const pack = require('../package.json');
|
|
6
|
+
|
|
7
|
+
const root = path.resolve(__dirname, '..');
|
|
8
|
+
|
|
9
|
+
const modules = [
|
|
10
|
+
...Object.keys(pack.peerDependencies),
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
const config = {
|
|
14
|
+
projectRoot: __dirname,
|
|
15
|
+
watchFolders: [root],
|
|
16
|
+
|
|
17
|
+
// We need to make sure that only one version is loaded for peerDependencies
|
|
18
|
+
// So we exclude them at the root, and alias them to the versions in example's node_modules
|
|
19
|
+
resolver: {
|
|
20
|
+
blacklistRE: exclusionList(
|
|
21
|
+
modules.map(
|
|
22
|
+
(m) =>
|
|
23
|
+
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`),
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
|
|
27
|
+
extraNodeModules: modules.reduce((acc, name) => {
|
|
28
|
+
acc[name] = path.join(__dirname, 'node_modules', name);
|
|
29
|
+
return acc;
|
|
30
|
+
}, {}),
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
transformer: {
|
|
34
|
+
getTransformOptions: async () => ({
|
|
35
|
+
transform: {
|
|
36
|
+
experimentalImportSupport: false,
|
|
37
|
+
inlineRequires: true,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|
package/Example/package.json
CHANGED
|
@@ -3,15 +3,35 @@
|
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"android": "react-native run-android",
|
|
7
|
+
"ios": "react-native run-ios",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"start": "react-native start",
|
|
10
|
+
"test": "jest"
|
|
8
11
|
},
|
|
9
12
|
"dependencies": {
|
|
10
|
-
"react": "
|
|
11
|
-
"react-native": "0.
|
|
12
|
-
"react-native-image-manipulator": "
|
|
13
|
+
"react": "18.2.0",
|
|
14
|
+
"react-native": "0.73.2",
|
|
15
|
+
"@oguzhnatly/react-native-image-manipulator": "link:../"
|
|
13
16
|
},
|
|
14
17
|
"devDependencies": {
|
|
15
|
-
"
|
|
18
|
+
"@babel/core": "^7.20.0",
|
|
19
|
+
"@babel/preset-env": "^7.20.0",
|
|
20
|
+
"@babel/runtime": "^7.20.0",
|
|
21
|
+
"@react-native/babel-preset": "0.73.19",
|
|
22
|
+
"@react-native/eslint-config": "0.73.2",
|
|
23
|
+
"@react-native/metro-config": "0.73.3",
|
|
24
|
+
"@react-native/typescript-config": "0.73.1",
|
|
25
|
+
"@types/react": "^18.2.6",
|
|
26
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
27
|
+
"babel-jest": "^29.6.3",
|
|
28
|
+
"eslint": "^8.19.0",
|
|
29
|
+
"jest": "^29.6.3",
|
|
30
|
+
"prettier": "2.8.8",
|
|
31
|
+
"react-test-renderer": "18.2.0",
|
|
32
|
+
"typescript": "5.0.4"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18"
|
|
16
36
|
}
|
|
17
37
|
}
|