Commit Graph

103 Commits

Author SHA1 Message Date
Ahmed Elhanafy
8adfa6751e feat: Dark Theme (#131)
* refactor: Add DarkTheme, new colors in theme & update components to use it

* chore: Remove 'console.log' statements

* chore: Change dark theme property from string to boolean

* feat: Add ability to toggle the theme from the drawer

* fix: Wrap typography example screen with 'withTheme'

* style: Update components to use correct dark theme colors

* style: Update dark theme primary color and rn-navigation toolbar now gets the color from the theme

* style: Add color prop to DrawerItem and update the example

* style: Change the unchecked color in both Checkbox and RadioButton

* chore: Add `yarn-error.log` to `.gitignore`

* chore: Use lodash instead of lodash.merge

* chore: Address PR comments
2017-10-13 15:29:28 +02:00
lukewalczak
bd1d481f58 fix: wrap icon in view 2017-10-13 15:27:43 +02:00
lukewalczak
05c8d10817 fix: fix checkbox container dimensions 2017-10-13 14:44:08 +02:00
Ahmed Elhanafy
3f88a6e53a feat: add dialog component (#98)
* Add dialog component

* Fix: fix back button not functioning right

* Fix: fix action btns get added to the scrollview

* Fix: match the MD guidelines for margins

* Visual enhancements to the dialog example scene

* Fix: fix flow errors

* 🎨 Fix prettier errors

* Enhancements to the dialog component

* More enhancements to the dialog component

* 🎉 Introduce Modal component and refactor Dialog to use it

* Remove ThemedPortal from exported components

* 🐛 Fix shadow cutoff on Android

* Add a comment about a regression that is caused by a fix that was done for Android

* chore: Seperate example dialog components into their own files

* chore: Rename Dialog components to be prefixed with 'Dialog'

* chore: change DialogTitle color prop to style

* chore: Replace AnimatedPaper to Paper.Animated

* fix: Replace BackAndroid with BackHandler

* chore: Merge master with `dialog`

* chore: Addressed comments
2017-10-11 14:53:06 +02:00
Ferran Negre
153130093a feat: Toolbar platform adaptation for iOS (#146)
* feat: Toolbar platform adaptation for iOS: Title centered depending on the number of Actions.

* feat: Fix ToolbarAction when using TouchableRipple.

* feat: Use 'ios' for platform check.
2017-10-02 15:10:37 +02:00
Krzysztof Borowy
8cd3e75cbe fix: Remove elevation prop, use styles instead (#153) 2017-10-02 15:08:54 +02:00
Luke Walczak
f201e1f7ea feat: Controls adaptation to IOS (#155)
* feat: checkbox ios adaptation

* feat: switch component

* feat: radio button ios adaptation

* feat: refactor control components
2017-10-02 14:59:06 +02:00
Krzysztof Borowy
d02205e23a Do not add 'ref' to functional Components (#147)
* fix: add refs only to non-functional components

* feat: mention supported RN version
2017-09-26 13:35:11 +02:00
Satyajit Sahoo
812825646f fix: fix error with checkbox component (#149) 2017-09-26 12:59:13 +02:00
Satyajit Sahoo
6b71968b2e chore: upgrade expo and react native (#148) 2017-09-26 12:46:56 +02:00
Luke Walczak
bbdf9f0423 Progress bar component (#144)
* feat: progress bar component

* feat: update progress bar example

* feat: refactor progress bar component

* feat: progress bar component finished
2017-09-25 11:53:05 +02:00
Adam Trzciński
572aa8ea1e feat: enhance Icon component (#125) 2017-08-22 10:31:04 +02:00
Satyajit Sahoo
5b797a9ea5 chore: upgrade dependencies and fix flow errors 2017-08-19 07:08:40 +02:00
Satyajit Sahoo
75c672628a fix: fix ToolbarContent proptypes 2017-08-11 23:10:44 +02:00
Satyajit Sahoo
b0d1dce696 fix: fix icon component 2017-08-09 16:32:24 +02:00
Ahmed Elhanafy
73cdf89378 Drawer removal (#123)
* breaking: Delete the drawer component and export DrawerItem and DrawerSection

* fix: Eslint errors

* fix: Eslint errors
2017-07-26 17:49:23 +02:00
Ferran Negre
aa6271ddd6 feat: SearchBar - Add ability to use the left icon as a button (#121) 2017-07-26 17:10:40 +02:00
Satyajit Sahoo
6a4bb7d6a4 fix: fix searchbar 2017-07-05 22:47:59 +05:30
Ferran Negre
79cf42aaf1 feat: add a Toolbar component (#112) 2017-07-05 22:33:32 +05:30
Satyajit Sahoo
1479c76f77 chore: upgrade to React Native 0.45 (#120) 2017-07-04 21:52:12 +02:00
Satyajit Sahoo
c3dba49d8a fix: use TouchableHighlight on Android < Lollipop (#115)
Earlier, older Android versions used a ugly blue highlight for touchable items. This commit changes it to a `TouchableHighlight`, which uses the appropriate highlight color. Merged it with the iOS version for now since they have the same behaviour.
2017-07-04 13:04:20 +02:00
Raúl Gómez Acuña
d82e1a0d4f chore: fix linting errors + add precommit hook for flow and lint (#114) 2017-07-04 15:47:53 +05:30
Satyajit Sahoo
16c3ea2f60 feat: add a FAB component (#109) 2017-06-26 11:57:16 -04:00
Satyajit Sahoo
8af7551914 fix: fix searchbar styles (#110) 2017-06-26 11:47:06 -04:00
Satyajit Sahoo
d117bb95c0 chore: fix prettier error 2017-06-26 19:57:37 +05:30
Satyajit Sahoo
b68f446f09 fix typo 2017-05-31 17:48:36 +05:30
Satyajit Sahoo
f58315775a refactor: rework theme provider and HOC 2017-05-31 17:05:05 +05:30
Satyajit Sahoo
0a203079f5 chore: use es5 trailing commas 2017-05-18 17:55:53 +05:30
ferrannp
2e49f5e957 fix: fix flow issues for withTheme and dependencies 2017-05-18 17:55:53 +05:30
Satyajit Sahoo
eee9b0372b chore: use prop-types package from npm 2017-05-18 17:55:53 +05:30
Satyajit Sahoo
ebada8fd6d chore: setup prettier 2017-05-18 17:55:53 +05:30
Satyajit Sahoo
c468b029e9 chore: improve dev workflow and upgrade deps 2017-05-18 17:55:53 +05:30
Ferran Negre
8f75241a3c feat: add searchBar component (#97) 2017-02-14 06:49:58 +05:30
Satyajit Sahoo
a467848f86 Use component-docs for documentation (#96) 2016-12-06 01:24:42 +02:00
Sreejith R
70b17c153a fix: use flexGrow instead of flex to avoid collapsing (#95) 2016-11-30 15:50:40 +05:30
Satyajit Sahoo
66e9fe7c73 fix: fix button's children 2016-11-30 14:32:07 +05:30
Satyajit Sahoo
25cd681466 fix: fix portal props 2016-11-29 08:09:30 +05:30
Satyajit Sahoo
ba6ee19eb5 feat: add checkbox and radio animations on Android (#89)
Border animations aren't very nice on iOS, so I disabled animations on iOS for now. Let's add animations when we find a better way.
Also native animations don't support borders as of now, so can't enables native animations either, probably can enable in future
2016-11-29 02:36:41 +02:00
Sreejith R
26ea691541 Removed 'export * as' syntax in 'src/index.js' (#93)
Changed 'export * as' syntax to 'import * as ...; export { ... }' since former needs extra babel plugin to function

* Moved the import of Colors to the top to pass Linter
2016-11-28 20:37:04 +05:30
Satyajit Sahoo
6165252485 Merge branch 'master' of github.com:react-native-paper/react-native-paper 2016-11-28 20:17:18 +05:30
Satyajit Sahoo
113e3cbd8f fix: fix flex in <PortalHost /> 2016-11-28 20:03:52 +05:30
Sreejith R
ce2555940b Exported DefaultTheme (#92) 2016-11-28 19:55:39 +05:30
Satyajit Sahoo
a5519eefbd feat: improvements to portal (#90)
- layer management according to position
- preserve theme context via ThemedPortal
2016-11-28 07:57:31 +02:00
Satyajit Sahoo
4732b02a0f feat: add portal component (#86)
* Initial commit

* Fix incorrect flow type

* refactor: tweak portal component

* fix: update portal's children when they update
2016-11-27 00:19:53 +02:00
Satyajit Sahoo
0c0b053946 docs: support markdown in docs 2016-11-25 09:25:13 +05:30
Satyajit Sahoo
aafadc9016 docs: add a way to specify extra props 2016-11-25 07:42:16 +05:30
Satyajit Sahoo
32c3ed8f38 BREAKING: rename shrink to compact for Button 2016-11-23 06:02:37 +05:30
Travis CI
1e98437543 chore: setup deployment 2016-11-22 05:14:13 +05:30
Satyajit Sahoo
1b804d4c7b docs: use components for typography elements 2016-11-21 19:58:51 +05:30
Satyajit Sahoo
3a9f2e5259 fix: fix extracting gridview props 2016-11-21 19:30:54 +05:30