Skip to content

Commit 632ef3f

Browse files
author
Ivan Zotov
committed
First commit
0 parents  commit 632ef3f

File tree

10 files changed

+3454
-0
lines changed

10 files changed

+3454
-0
lines changed

.eslintrc.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"globals": {
8+
"Atomics": "readonly",
9+
"SharedArrayBuffer": "readonly"
10+
},
11+
"parser": "babel-eslint",
12+
"parserOptions": {
13+
"ecmaFeatures": {
14+
"jsx": true
15+
},
16+
"ecmaVersion": 2018,
17+
"sourceType": "module"
18+
},
19+
"rules": {}
20+
}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules/
3+
coverage/

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"semi": true
5+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019-present Ivan Zotov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# NavigationJS React
2+
3+
[![downloads][downloads-badge]][npmcharts]
4+
[![version][version-badge]][package]
5+
[![license][license-badge]][license]
6+
[![coverage][codecov-badge]][codecov]
7+
[![PRs Welcome][prs-badge]][prs]
8+
9+
## LICENSE
10+
11+
MIT
12+
13+
[version-badge]: https://img.shields.io/npm/v/@navigationjs/react.svg?style=flat-square
14+
[package]: https://www.npmjs.com/package/@navigationjs/react
15+
[downloads-badge]: https://img.shields.io/npm/dm/@navigationjs/react.svg?style=flat-square
16+
[npmcharts]: http://npmcharts.com/compare/@navigationjs/react
17+
[license-badge]: https://img.shields.io/npm/l/@navigationjs/react.svg?style=flat-square
18+
[license]: https://github.com/navigationjs/react/blob/master/LICENSE
19+
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
20+
[prs]: http://makeapullrequest.com
21+
[codecov]: https://codecov.io/gh/navigationjs/react
22+
[codecov-badge]: https://img.shields.io/codecov/c/github/navigationjs/react.svg?style=flat-square

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['module:metro-react-native-babel-preset'],
3+
};

index.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import navigation, {
2+
Navigation,
3+
Base,
4+
Value,
5+
toId,
6+
fromId,
7+
} from '@navigationjs/core';
8+
9+
export { Navigation, Base, Value, toId, fromId };
10+
export default navigation;

package.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "@navigationjs/react",
3+
"version": "0.1.0",
4+
"description": "Small and well-tested React navigation",
5+
"main": "index.js",
6+
"author": "Ivan Zotov <[email protected]> (http://ivanzotov.com/)",
7+
"license": "MIT",
8+
"private": false,
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/navigationjs/react.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/navigationjs/react/issues"
15+
},
16+
"homepage": "https://navigationjs.github.io/react/",
17+
"keywords": [
18+
"react",
19+
"navigation"
20+
],
21+
"scripts": {
22+
"test": "jest",
23+
"debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
24+
"format": "prettier --write '{__tests__,src}/**/*.{js,json}' './*.{js,json}'"
25+
},
26+
"peerDependencies": {
27+
"react": "*"
28+
},
29+
"devDependencies": {
30+
"@testing-library/react": "^9.4.0",
31+
"eslint": "^6.6.0",
32+
"jest": "^24.9.0",
33+
"prettier": "^1.16.4",
34+
"react": "^16.11.0",
35+
"react-test-renderer": "^16.11.0"
36+
},
37+
"jest": {
38+
"preset": "@testing-library/react",
39+
"testEnvironment": "node"
40+
},
41+
"dependencies": {
42+
"@navigationjs/core": "^0.2.3",
43+
"@railsmob/events": "^0.1.10"
44+
}
45+
}

src/Wrap/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)