Skip to content

Commit 62463d2

Browse files
author
PierreCapo
committed
fix: miscellaneous
1 parent 9b704ce commit 62463d2

File tree

6 files changed

+17
-218
lines changed

6 files changed

+17
-218
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
## Install
1212

13+
The library is still in version 0, be cautious when you upgrade it! 🚧
14+
1315
```
1416
yarn add react-native-socials
1517
```

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-socials",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"description": "A react-native library which displays content from popular social networks",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
@@ -10,6 +10,7 @@
1010
"type": "git",
1111
"url": "git://github.com/PierreCapo/react-native-socials.git"
1212
},
13+
"prepublish": "tsc --p ./tsconfig.json",
1314
"dependencies": {
1415
"@babel/runtime": "^7.9.2",
1516
"@types/react-native": "^0.62.1",

src/Twitter/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const adapter = (data: TwitterPostApiResponse): ITwitterPost => {
8181
);
8282
});
8383

84+
// @ts-ignore
8485
return response;
8586
};
8687

src/Twitter/generateTwitterHeaders.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-ignore
12
import oauthSignature from "oauth-signature";
23

34
/*

src/Twitter/samples.ts

Lines changed: 0 additions & 215 deletions
This file was deleted.

tsconfig.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
"importHelpers": true,
1414
"strict": true,
1515
"noImplicitReturns": true,
16-
"declaration": true
17-
}
16+
"declaration": true,
17+
"types": ["react-native"]
18+
},
19+
"exclude": [
20+
"node_modules",
21+
"dist",
22+
"example",
23+
"**/__tests__/*",
24+
"**/*.test.ts",
25+
"**/*.test.tsx"
26+
]
1827
}

0 commit comments

Comments
 (0)