Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

v1.0 – Cleanup, rewrite and long-awaited customizability #76

Merged
merged 92 commits into from
May 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
59886ef
Replace old files with new structure
timomeh Feb 26, 2018
ece6553
Change to Tab render prop
timomeh Feb 27, 2018
c282826
Fix TabList and Tab fill
timomeh Feb 27, 2018
c4b1cbc
Add animation to Tab
timomeh Feb 27, 2018
0e69ff0
Add PropTypes
timomeh Feb 27, 2018
66f6b24
Remove unused files
timomeh Feb 27, 2018
d5b83d5
Update LICENSE
timomeh Feb 27, 2018
7072d6f
Add PropTypes to BackgroundRipples
timomeh Feb 27, 2018
728bfb6
Make the component also controlled
timomeh Mar 3, 2018
4f3d943
Use Component instead of PureComponents
timomeh Mar 3, 2018
97b03a8
Move press event destructuring to root
timomeh Mar 4, 2018
6ab71c8
Make comment a bit more precise
timomeh Mar 4, 2018
d38cec3
Add Press Feedback Ripple
timomeh Mar 4, 2018
9f5fe5d
Refactor structure once again
timomeh Mar 4, 2018
5c7e5f1
Make Component controllable again
timomeh Mar 4, 2018
6402d88
Improve PressFeedback Ripples
timomeh Mar 4, 2018
9e5c967
Add PropTypes and comments
timomeh Mar 4, 2018
68eee0a
Rename Tab to IconTab
timomeh Mar 20, 2018
bac9c83
Add FullTab (Icon + Label)
timomeh Mar 20, 2018
8139b8e
Add labelProps
timomeh Mar 20, 2018
36f8e82
Fix Tab PropTypes
timomeh Mar 20, 2018
58b2b40
Add Shifting Tab
timomeh Mar 20, 2018
4d1293d
Fix glitching ShiftingTab
timomeh Mar 21, 2018
672f45f
Component instead of PureComponent
timomeh Mar 21, 2018
d95e649
Format code
timomeh Mar 21, 2018
9fb2ee0
Fix Typo
timomeh Mar 21, 2018
e562649
Add lots of comments and docs
timomeh Mar 21, 2018
3ac01ad
Move prop docs
timomeh Mar 22, 2018
cccb62d
Fix prop
timomeh Mar 22, 2018
20557c5
Fix overflowing issues
timomeh Mar 22, 2018
24feaf9
Only change bar background if it's set
timomeh Mar 22, 2018
e8504a2
Add support for iPhone X
timomeh Mar 22, 2018
c112c05
Add Badge Component
timomeh Mar 22, 2018
53cc913
Change `data` to `tab`
timomeh Mar 22, 2018
6dcb964
Add slots for badge in Tabs
timomeh Mar 22, 2018
06f4cbe
Add docs for Badge
timomeh Mar 23, 2018
d921ddc
Add support for landscape and transparent navbar
timomeh Mar 23, 2018
7efe3f4
Fix softkeys only on portrait
timomeh Mar 23, 2018
0140fe9
Check platform to increase performance
timomeh Mar 23, 2018
1ec6c32
Make code cleaner
timomeh Mar 23, 2018
5d038c3
Fix badge position in ios
timomeh Mar 23, 2018
3bf4d60
Make badge not pure
timomeh Mar 23, 2018
70a7cca
Fix docs
timomeh Mar 23, 2018
ec67b17
Adapt typescript config
timomeh Mar 23, 2018
a5a4c40
Add flow types
timomeh Mar 23, 2018
8419888
Delete old examples
timomeh Mar 25, 2018
cd9e1cf
Remove export of types
timomeh Mar 25, 2018
c813e2c
Add comment
timomeh Mar 25, 2018
b82e738
Improve package defs
timomeh Mar 25, 2018
223089e
Make TabList pure to prevent unnecessary rerenders
timomeh Mar 25, 2018
bba897b
Add working test & playground setup
timomeh Mar 25, 2018
ab0872e
Add tests for BottomNavigationProps
timomeh Mar 25, 2018
72cfcb0
Add test for BackgroundDecorator
timomeh Mar 25, 2018
8dee700
Add test for PressFeedback
timomeh Mar 25, 2018
6d60239
Add tests for TabList
timomeh Mar 25, 2018
22704e2
Add tests for Badge
timomeh Mar 26, 2018
dc4f0a8
Update Playground Readme
timomeh Mar 26, 2018
d0d8dc5
Add useLayoutAnimation test to TabList
timomeh Mar 26, 2018
250832d
Add tests for Tabs
timomeh Mar 26, 2018
1df366c
Add circleci config
timomeh Mar 26, 2018
f539666
Add test to PressFeedback
timomeh Mar 26, 2018
44e9353
Add tests for BackgroundRippleAnimation
timomeh Mar 26, 2018
b22b830
Add size prop to PressRippleAnimation
timomeh Mar 26, 2018
a7d9a12
Add tests for PressRippleAnimation
timomeh Mar 26, 2018
ab9cb0d
Add pressSize prop docs
timomeh Mar 26, 2018
2d7c6d8
Merge branch 'master' into rewrite-cleanup
timomeh Mar 26, 2018
b3ef2a4
Remove flow-bin dependency
timomeh Mar 26, 2018
07b5bb6
Fix proptypes in FullTab
timomeh Mar 26, 2018
34c779f
Fix link in ShiftingTab Docs
timomeh Mar 26, 2018
886c6e6
Add api doc generation
timomeh Mar 26, 2018
19d6933
Add API docs
timomeh Mar 26, 2018
03d8a07
Change api docs base path
timomeh Mar 26, 2018
cb66fcb
Sort docs alpha
timomeh Mar 26, 2018
38ea11a
Fix pressColor prop
timomeh Mar 26, 2018
7014c36
Overhaul README
timomeh Mar 26, 2018
783e1b8
Improve README layout
timomeh Mar 26, 2018
e278183
Improve README layout
timomeh Mar 26, 2018
1b71eac
Add demo to README
timomeh Mar 26, 2018
1fb0817
Fix typo in readme
timomeh Mar 26, 2018
e35e40d
Improve README
timomeh Mar 26, 2018
0c344a7
Improve README
timomeh Mar 26, 2018
359def2
Add gitbook
timomeh Mar 27, 2018
114b1de
Update example
timomeh Mar 27, 2018
5d94cd9
Rename test files with test suffix
timomeh Mar 27, 2018
d464909
Fix code style
timomeh Mar 27, 2018
f795854
Update Notes in README
timomeh May 14, 2018
89e55c2
Update to new gitbook
timomeh May 14, 2018
0361c3b
Add Usage Docs
timomeh May 14, 2018
43aef6b
Change docs
timomeh May 14, 2018
ed55a9b
Add basic support for react-native-web
timomeh May 14, 2018
15c14fd
Add docs to npm files
timomeh May 14, 2018
ba3e047
Bump version to 1.0.0 🚀✨
timomeh May 14, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: 2

defaults: &defaults
docker:
- image: circleci/node:9.4
working_directory: ~/project

jobs:
install_dependencies:
<<: *defaults

steps:
- checkout
- restore_cache:
keys:
- v1-react-native-mbn-{{ checksum "package.json" }}
- v1-react-native-mbn-
- run:
name: Install dependencies
command: npm install
- run:
name: Install Code Climate Reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- save_cache:
key: v1-react-native-mbn-{{ checksum "package.json" }}
paths: node_modules
- persist_to_workspace:
root: .
paths: .

lint:
<<: *defaults

steps:
- attach_workspace:
at: ~/project
- run: npm run lint

unit_test:
<<: *defaults

steps:
- attach_workspace:
at: ~/project
- run:
name: Unit Tests with Coverage
command: |
./cc-test-reporter before-build
npm test
./cc-test-reporter after-build --exit-code $?
environment:
JEST_JUNIT_OUTPUT: "coverage/junit/js-test-results.xml"
- store_test_results:
path: coverage/junit
- store_artifacts:
path: coverage
destination: coverage

workflows:
version: 2
ci_test:
jobs:
- install_dependencies
- lint:
requires:
- install_dependencies
- unit_test:
requires:
- install_dependencies
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
package*.json
examples/**/node_modules
coverage/
3 changes: 3 additions & 0 deletions .gitbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
structure:
readme: README.md
summary: docs/README.md
Binary file removed .github/behind-nav-bar.gif
Binary file not shown.
Binary file removed .github/color-3-tab.gif
Binary file not shown.
Binary file removed .github/color-4-tab.gif
Binary file not shown.
Binary file added .github/demo-full.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/demo-icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/demo-shifting.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/white-3-tab.gif
Binary file not shown.
Binary file removed .github/white-4-tab.gif
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/node_modules
npm-debug.log*
coverage
_book
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

Empty file added CONTRIBUTING.md
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017-present, Timo Mämecke

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 0 additions & 7 deletions LICENSE.md

This file was deleted.

Loading