This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
79 lines (79 loc) · 5.11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"_args": [
[
{
"raw": "https://github.com/DaBs/react-native-media-manipulator",
"scope": null,
"escapedName": null,
"name": null,
"rawSpec": "https://github.com/DaBs/react-native-media-manipulator",
"spec": "git+https://github.com/DaBs/react-native-media-manipulator.git",
"type": "hosted",
"hosted": {
"type": "github",
"ssh": "[email protected]:DaBs/react-native-media-manipulator.git",
"sshUrl": "git+ssh://[email protected]/DaBs/react-native-media-manipulator.git",
"httpsUrl": "git+https://github.com/DaBs/react-native-media-manipulator.git",
"gitUrl": "git://github.com/DaBs/react-native-media-manipulator.git",
"shortcut": "github:DaBs/react-native-media-manipulator",
"directUrl": "https://raw.githubusercontent.com/DaBs/react-native-media-manipulator/master/package.json"
}
},
"/Users/davidbjerremose/Documents/git/Fisher"
]
],
"_from": "git+https://github.com/DaBs/react-native-media-manipulator.git",
"_id": "[email protected]",
"_inCache": true,
"_location": "/react-native-media-manipulator",
"_phantomChildren": {},
"_requested": {
"raw": "https://github.com/DaBs/react-native-media-manipulator",
"scope": null,
"escapedName": null,
"name": null,
"rawSpec": "https://github.com/DaBs/react-native-media-manipulator",
"spec": "git+https://github.com/DaBs/react-native-media-manipulator.git",
"type": "hosted",
"hosted": {
"type": "github",
"ssh": "[email protected]:DaBs/react-native-media-manipulator.git",
"sshUrl": "git+ssh://[email protected]/DaBs/react-native-media-manipulator.git",
"httpsUrl": "git+https://github.com/DaBs/react-native-media-manipulator.git",
"gitUrl": "git://github.com/DaBs/react-native-media-manipulator.git",
"shortcut": "github:DaBs/react-native-media-manipulator",
"directUrl": "https://raw.githubusercontent.com/DaBs/react-native-media-manipulator/master/package.json"
}
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "git+https://github.com/DaBs/react-native-media-manipulator.git#6b7a6c3bd27d214c8e75fcd31b2ac254942fa2cd",
"_shasum": "27ca304052724e2d0a410ce9b0a420118c758396",
"_shrinkwrap": null,
"_spec": "https://github.com/DaBs/react-native-media-manipulator",
"_where": "/Users/davidbjerremose/Documents/git/Fisher",
"author": "David Bjerremose",
"dependencies": {},
"homepage": "https://github.com/DaBs/react-native-media-manipulator",
"description": "## Getting started",
"devDependencies": {},
"gitHead": "6b7a6c3bd27d214c8e75fcd31b2ac254942fa2cd",
"keywords": [
"react-native"
],
"license": "",
"main": "index.js",
"name": "react-native-media-manipulator",
"optionalDependencies": {},
"peerDependencies": {
"react-native": "^0.41.2"
},
"readme": "\n# react-native-media-manipulator\n\n## Getting started\n\n`$ npm install react-native-media-manipulator --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-media-manipulator`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-media-manipulator` and add `RNMediaManipulator.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNMediaManipulator.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)<\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n - Add `import com.davidbjerremose.reactnativemediamanipulator.RNMediaManipulatorPackage;` to the imports at the top of the file\n - Add `new RNMediaManipulatorPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n \t```\n \tinclude ':react-native-media-manipulator'\n \tproject(':react-native-media-manipulator').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-media-manipulator/android')\n \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n \t```\n compile project(':react-native-media-manipulator')\n \t```\n\n\n## Usage\n```javascript\nimport RNMediaManipulator from 'react-native-media-manipulator';\n\nRNMediaManipulator.mergeImages({\n uri: 'https://example.com/image.png',\n width: 1000, // height of final image\n height: 500 // width of final image\n}, [\n {\n uri: 'http://example.com/otherimage.png', // URI for other image you want merge on top of the background,\n width: 200, // width of image\n height: 200, // height of image\n scale: 1, // scale of image\n rotate: '0deg', // rotation of image\n x: 20, // x position of image\n y: 200 // y position of image\n }\n]).then(uri => {\n // do something with your new image that is stored in tmp\n}).catch(error => {\n // something went wrong creating the image.\n})\n```\n \n",
"readmeFilename": "README.md",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.0.2"
}