Skip to content

Commit 5b3bbcb

Browse files
committed
initial commit
0 parents  commit 5b3bbcb

File tree

7 files changed

+543
-0
lines changed

7 files changed

+543
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["react-native"]
3+
}

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
project.xcworkspace
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
33+
# node.js
34+
#
35+
node_modules/
36+
npm-debug.log
37+
yarn-error.log
38+
39+
# BUCK
40+
buck-out/
41+
\.buckd/
42+
*.keystore
43+
44+
# fastlane
45+
#
46+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47+
# screenshots whenever they are needed.
48+
# For more information about the recommended setup visit:
49+
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50+
51+
fastlane/report.xml
52+
fastlane/Preview.html
53+
fastlane/screenshots

__tests__/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import 'react-native';
2+
import React from 'react';
3+
import Drawer, { Message } from '../index.js';
4+
5+
// Note: test renderer must be required after react-native.
6+
import renderer from 'react-test-renderer';
7+
8+
it('renders drawer', () => {
9+
const tree = renderer.create(
10+
<Drawer />
11+
);
12+
});
13+
14+
it('renders message', () => {
15+
const tree = renderer.create(
16+
<Message />
17+
);
18+
});

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from './src/Drawer';
2+
export { default as Message } from './src/Message';

package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "react-native-bottom-drawer",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"scripts": {
6+
"test": "jest"
7+
},
8+
"author": "Konstantin Shkut <[email protected]> (http://rationalappdev.com)",
9+
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+ssh://[email protected]/rationalappdev/react-native-bottom-drawer.git"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/rationalappdev/react-native-bottom-drawer/issues"
16+
},
17+
"homepage": "https://github.com/rationalappdev/react-native-bottom-drawer#readme",
18+
"description": "",
19+
"keywords": [
20+
"react-native",
21+
"drawer"
22+
],
23+
"dependencies": {
24+
"react-native-vector-icons": "^4.0.0"
25+
},
26+
"devDependencies": {
27+
"babel-jest": "^19.0.0",
28+
"babel-preset-react-native": "^1.9.1",
29+
"jest": "^19.0.2",
30+
"react": "^15.4.2",
31+
"react-native": "^0.42.3",
32+
"react-test-renderer": "^15.4.2"
33+
},
34+
"jest": {
35+
"preset": "react-native"
36+
}
37+
}

0 commit comments

Comments
 (0)