在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):nativescript-community/ui-material-components开源软件地址(OpenSource Url):https://github.com/nativescript-community/ui-material-components开源编程语言(OpenSource Language):TypeScript 82.8%开源软件介绍(OpenSource Introduction):Nativescript Material ComponentsBuild beautiful, usable products using Material Components for NativeScript. InstallationAndroidEnsure your Android Theme is inheriting from ThemingDefining the theme and the default colors must be done a bit differently on iOS and Android
import { themer } from '@nativescript-community/ui-material-core';
if (global.isIOS) {
themer.setPrimaryColor('#bff937');
themer.setAccentColor('#ff8a39');
themer.setSecondaryColor('#a830d7');
} MixinsThrough this component you can apply import { installMixins } from '@nativescript-community/ui-material-core';
installMixins(); ComponentsFAQQuestion: How to use the latest version of this plugin for iOS? Answer: To get latest versions of Material Components for iOS (> 112.1) you will need to change Pod min version to 10.0
To do that modify or create Q: How to migrate to AndroidX with this plugin installed (Android only)? A: For Material Components to work correctly with {N} 6 and AndroidX you need to update your android app theme.
Inside Q: What is the difference between Bottom Navigation and Bottom Navigation Bar component? A: The Bottom Navigation Bar is a new component to draw a bottom navigation bar in material design. The Bottom Navigation component is a simple extract of the eponymous component from NativeScript, which probably will be removed in the future so this one can be used for easy transition. Q: How can I contribute? A: npm i
npm run setup # this should happen for every typescript update
npm run build.all
npm run demo.ios
npm run demo.android |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论