Skip to content

Commit dc2f4a9

Browse files
committed
Add Share Hook
1 parent 3224d86 commit dc2f4a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+17368
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_size = 2
6+
end_of_line = lf
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"extends": [
3+
"airbnb",
4+
"prettier",
5+
"plugin:prettier/recommended",
6+
"prettier/flowtype",
7+
"prettier/react",
8+
"prettier/standard"
9+
],
10+
"parser": "babel-eslint",
11+
"plugins": ["react-native", "jest", "prettier"],
12+
"env": {
13+
"jest": true
14+
},
15+
"rules": {
16+
"react/jsx-no-bind": "off",
17+
"react/no-string-refs": "off",
18+
"no-underscore-dangle": "off",
19+
"no-unused-vars": ["error", { "argsIgnorePattern": "(state|dispatch)" }],
20+
"new-cap": ["error", { "capIsNewExceptions": ["Immutable"] }],
21+
"import/no-extraneous-dependencies": "off",
22+
"no-console": "off",
23+
"react/jsx-filename-extension": "off",
24+
"global-require": "off",
25+
"no-alert": "off",
26+
"react/forbid-prop-types": "off",
27+
"class-methods-use-this": "off",
28+
"react/no-unused-prop-types": "warn",
29+
"react/prefer-stateless-function": [
30+
"error",
31+
{ "ignorePureComponents": true }
32+
],
33+
"react/require-default-props": "off"
34+
}
35+
}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.idea
2+
node_modules
3+
dist
4+
.DS_Store
5+
.vscode
6+
*.log
7+
coverage
8+
.yalc

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.idea
2+
node_modules
3+
_tests_
4+
.DS_Store
5+
.vscode
6+
*.log
7+
coverage
8+
example
9+
yalc.lock

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
dist
3+
*.log
4+
coverage
5+
.yalc
6+
ios/
7+
android/

.prettierrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
singleQuote: true,
3+
trailingComma: 'all',
4+
};

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: node_js
2+
node_js:
3+
- 10
4+
- 8
5+
addons:
6+
code_climate:
7+
repo_token:
8+
secure: "PnisVkP1GBCiyHW4LSIiQGt1i1EfgWfdZnSYy2JRj6d8wkVWkeVNe/tVJUBUxm+mXtbFO89Omr4SCiE5ZUD/SHFkItq0M/w3GusepO2ZxPs4rTMTnn/5GRPRfRleuhyRWG3TqdRI/JS1wv5aMAM08xTyB/JxYlu+lakCUauU8r+gbL2qj5Ym0RSsDYkccOI6peITAH0VFbl52JW7voeVBY2e9hz5toNe2zwHHy+3/Fh9Kgp+jYC1Qp7PGjU2YmcfHBFFT2RIAWRZMThQ4/kYjZK78nhH0TSWXyFt4XKcYyxAUIpe+UbnyQxbopbMoxW8GOGUCXKfAuVEGK0wE3vT2sUiWZUdEsybPsPFqNgh+dZtcaphBNGqPyZ85Il/j7aTemI+Y30Ys1yri5lkVMjOXTRI3k3jVbjL9pgzjBk+3+zCQel9DxoKCawG45CyibUFtwHUsRqamDv22qIIOxAYTCa7rxp0MkhpO2wYdhf0kNFBHPF4k7o8K90UklC5+HFAcsmGAIHb8krtmKcP7LGaxUbEFAFKvk21720ehtKOG4PEJSGPNctaSwY34E3Jb4Skud4yHpU/O0Gl+PJVwrYvGn0ZH/tmxctLjpXlM3tkooZiT3MroVo91RPM31su+oYyyiv+F1nC2HwRNn1kAOiRRMPL5gQwMiRUZYKppcItJ9o="
9+
script: npm run test:coverage
10+
before_script:
11+
- npm install codeclimate-test-reporter -g
12+
after_script:
13+
- codeclimate-test-reporter < ./coverage/lcov.info
14+
notifications:
15+
email:
16+
recipients:
17+
18+
on_success: never
19+
on_failure: always

.yalcignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
example

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# template [![Build Status](https://travis-ci.com/react-native-hooks/template.svg?branch=master)](https://travis-ci.com/react-native-hooks/template) [![Maintainability](https://api.codeclimate.com/v1/badges/66997889d9122a22f79b/maintainability)](https://codeclimate.com/github/react-native-hooks/template/maintainability)
2+
> A template for creating React Native hooks project
3+
4+
### Installation
5+
6+
```bash
7+
$ git clone https://github.com/react-native-hooks/template.git example-template
8+
$ cd example-template
9+
```
10+
11+
The dependencies are linked using [yalc](https://github.com/whitecolor/yalc).
12+
You can link them locally and test using the [examples](https://github.com/react-native-hooks/template/tree/master/example) directory.

_tests_/index.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import useShare from '../src';
2+
3+
describe('Test Share function', () => {
4+
it('should be a function', () => {
5+
expect(typeof useShare).toBe('function');
6+
});
7+
});

0 commit comments

Comments
 (0)