|
1 | 1 | # Nativescript Material Components
|
2 | 2 |
|
3 |
| -[](https://lernajs.io/) |
| 3 | +[](https://lerna.js.org/) |
4 | 4 |
|
5 | 5 | Build beautiful, usable products using Material Components for NativeScript.
|
6 | 6 |
|
7 | 7 | ## Components
|
8 | 8 |
|
9 |
| -- [Button](./packages/button/README.md) |
10 |
| -- [Floating Action Button](./packages/floatingactionbutton/README.md) |
11 |
| -- [TextField](./packages/textfield/README.md) |
12 |
| -- [TextView](./packages/textview/README.md) |
13 |
| -- [CardView](./packages/cardview/README.md) |
14 |
| -- [Slider](./packages/slider/README.md) |
15 |
| -- [Progress](./packages/progress/README.md) |
16 |
| -- [ActivityIndicator](./packages/activityindicator/README.md) |
17 |
| -- [Dialogs](./packages/dialogs/README.md) |
18 |
| -- [Bottom Sheets](./packages/bottomsheet/README.md) |
19 |
| -- [Ripple View](./packages/ripple/README.md) |
20 |
| -- [Snackbar](./packages/snackbar/README.md) |
21 |
| -- [Bottom Navigation Bar](./packages/bottomnavigationbar/README.md) |
| 9 | +| Name | README | npm | Material design | |
| 10 | +| :---: | :---: | :---: | :---: | |
| 11 | +| Circular progress indicator | [README.md](./packages/activityindicator/README.md) | [@nativescript-community/ui-material-activityindicator](https://www.npmjs.com/package/@nativescript-community/ui-material-activityindicator) | [Circular progress indicators](https://material.io/components/progress-indicators#circular-progress-indicators) | |
| 12 | +| Bottom navigation | [README.md](./packages/bottom-navigation/README.md) | [@nativescript-community/ui-material-bottom-navigation](https://www.npmjs.com/package/@nativescript-community/ui-material-bottom-navigation) | [Bottom navigation](https://material.io/components/bottom-navigation) | |
| 13 | +| Bottom navigation bar | [README.md](./packages/bottomnavigationbar/README.md) | [@nativescript-community/ui-material-bottomnavigationbar](https://www.npmjs.com/package/@nativescript-community/ui-material-bottomnavigationbar) | [Bottom navigation](https://material.io/components/bottom-navigation) | |
| 14 | +| Bottom sheet | [README.md](./packages/bottomsheet/README.md) | [@nativescript-community/ui-material-bottomsheet](https://www.npmjs.com/package/@nativescript-community/ui-material-bottomsheet) | [Sheets: bottom](https://material.io/components/sheets-bottom) | |
| 15 | +| Button | [README.md](./packages/button/README.md) | [@nativescript-community/ui-material-button](https://www.npmjs.com/package/@nativescript-community/ui-material-button) | [Buttons](https://material.io/components/buttons) | |
| 16 | +| Card | [README.md](./packages/cardview/README.md) | [@nativescript-community/ui-material-cardview](https://www.npmjs.com/package/@nativescript-community/ui-material-cardview) | [Cards](https://material.io/components/cards) | |
| 17 | +| Dialogs | [README.md](./packages/dialogs/README.md) | [@nativescript-community/ui-material-dialogs](https://www.npmjs.com/package/@nativescript-community/ui-material-dialogs) | [Dialogs](https://material.io/components/dialogs) | |
| 18 | +| Floating action button | [README.md](./packages/floatingactionbutton/README.md) | [@nativescript-community/ui-material-floatingactionbutton](https://www.npmjs.com/package/@nativescript-community/ui-material-floatingactionbutton) | [Buttons: floating action button](https://material.io/components/buttons-floating-action-button) | |
| 19 | +| Linear progress indicator | [README.md](./packages/progress/README.md) | [@nativescript-community/ui-material-progress](https://www.npmjs.com/package/@nativescript-community/ui-material-progress) | [Linear progress indicators](https://material.io/components/progress-indicators#linear-progress-indicators) | |
| 20 | +| Ripple | [README.md](./packages/ripple/README.md) | [@nativescript-community/ui-material-ripple](https://www.npmjs.com/package/@nativescript-community/ui-material-ripple) | [Ripple](https://material.io/design/interaction/states.html#pressed) | |
| 21 | +| Slider | [README.md](./packages/slider/README.md) | [@nativescript-community/ui-material-slider](https://www.npmjs.com/package/@nativescript-community/ui-material-slider) | [Sliders](https://material.io/components/sliders) | |
| 22 | +| Snackbar | [README.md](./packages/snackbar/README.md) | [@nativescript-community/ui-material-snackbar](https://www.npmjs.com/package/@nativescript-community/ui-material-snackbar) | [Snackbars](https://material.io/components/snackbars) | |
| 23 | +| Speed dial | [README.md](./packages/speeddial/README.md) | [@nativescript-community/ui-material-speeddial](https://www.npmjs.com/package/@nativescript-community/ui-material-speeddial) | [Speed dial](https://material.io/components/buttons-floating-action-button#types-of-transitions) | |
| 24 | +| Tabs | [README.md](./packages/tabs/README.md) | [@nativescript-community/ui-material-tabs](https://www.npmjs.com/package/@nativescript-community/ui-material-tabs) | [Tabs](https://material.io/components/tabs) | |
| 25 | +| Text field | [README.md](./packages/textfield/README.md) | [@nativescript-community/ui-material-textfield](https://www.npmjs.com/package/@nativescript-community/ui-material-textfield) | [Text fields](https://material.io/components/text-fields) | |
| 26 | +| Text view | [README.md](./packages/textview/README.md) | [@nativescript-community/ui-material-textview](https://www.npmjs.com/package/@nativescript-community/ui-material-textview) | [Material Text View](https://material.io/develop/android/components/material-text-view) | |
| 27 | + |
| 28 | +## FAQ |
| 29 | + |
| 30 | +**Question:** How to use the latest version of this plugin for iOS? |
| 31 | + |
| 32 | +**Answer:** To get latest versions of Material Components for iOS (> 112.1) you will need to change Pod min version to 10.0 |
| 33 | +To do that modify or create `App_Resources/iOS/Podfile` to add `platform :ios, '10.0'`. |
| 34 | +You can see an example in the demo-vue app. |
22 | 35 |
|
| 36 | +## |
23 | 37 |
|
24 |
| -## iOS latest versions |
| 38 | +**Q:** How to migrate to AndroidX with this plugin installed (Android only)? |
25 | 39 |
|
26 |
| -To get latest versions of Material Components for iOS (> 112.1) you will need to change Pod min version to 10.0 |
27 |
| -To do that modify or create `App_Resources/iOS/Podfile` to add `platform :ios, '10.0'`. |
| 40 | +**A:** For Material Components to work correctly with {N} 6 and AndroidX you need to update your android app theme. |
| 41 | +Inside ```App_resources/android/res/values/styles.xml``` replace all occurences of ```Theme.AppCompat``` with ```Theme.MaterialComponents``` |
28 | 42 | You can see an example in the demo-vue app.
|
29 | 43 |
|
30 |
| -## Android migration to AndroidX |
| 44 | +## |
31 | 45 |
|
32 |
| -For Material Components to work correctly with {N} 6 and AndroidX you need to update your android app theme. |
33 |
| -inside ```App_resources/android/res/values/styles.xml``` replace all occurences of ```Theme.AppCompat``` with ```Theme.MaterialComponents``` |
34 |
| -You can see an example in the demo-vue app. |
| 46 | +**Q:** What is the difference between Bottom Navigation and Bottom Navigation Bar component? |
35 | 47 |
|
36 |
| -## Contribution |
| 48 | +**A:** The _Bottom Navigation Bar_ is a new component to draw a bottom navigation bar in material design. |
| 49 | +The _Bottom Navigation_ component is a simple extract of the [eponymous component from NativeScript](https://docs.nativescript.org/ui/components/bottom-navigation), which probably will be removed in the future so this one can be used for easy transition. |
37 | 50 |
|
| 51 | +## |
| 52 | + |
| 53 | +**Q:** How can I contribute? |
| 54 | + |
| 55 | +**A:** |
38 | 56 | ```bash
|
39 | 57 | npm i
|
40 |
| -npm run setup // this should happen for every typescript update |
| 58 | +npm run setup # this should happen for every typescript update |
41 | 59 | npm run tsc
|
42 | 60 | npm run demo.ios
|
43 | 61 | npm run demo.android
|
44 | 62 | ```
|
45 |
| - |
46 |
| - |
|
0 commit comments