Skip to content

Commit 61bbe23

Browse files
author
xxKRASHxx
committed
add script
1 parent 1706c3b commit 61bbe23

File tree

6 files changed

+54
-0
lines changed

6 files changed

+54
-0
lines changed

bin/fix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require('./index');

bin/fix.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
echo "Fix blob"
4+
grep -rl "s.dependency 'React/Core'" node_modules/react-native-fetch-blob | xargs sed -i '' 's=React/Core=React-Core=g'
5+
echo "Done"

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
console.log('Greetengs from Daniel Lisovoy <3')

node_modules/.yarn-integrity

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "react-native-fix-fetch-blob",
3+
"version": "1.0.0",
4+
"description": "A library to help you fix react-native-fetch-blob on react-native >0.60.x",
5+
"main": "index.js",
6+
"bin": "./bin/fix.sh",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/xxKRASHxx/react-native-fix-fetch-blob.git"
10+
},
11+
"scripts": {
12+
"test": "echo \"Error: no test specified\" && exit 1"
13+
},
14+
"keywords": [
15+
"react-native",
16+
"ios",
17+
"fetch",
18+
"blob"
19+
],
20+
"author": "Daniel Lisovoy",
21+
"license": "MIT",
22+
"homepage": "https://github.com/xxKRASHxx/react-native-fix-fetch-blob#README.md",
23+
"bugs": {
24+
"url": "https://github.com/xxKRASHxx/react-native-fix-fetch-blob.git"
25+
},
26+
"peerDependencies": {
27+
"react-native": "<0.60.0"
28+
}
29+
}

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+

0 commit comments

Comments
 (0)