在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):xinthink/react-native-material-kit开源软件地址(OpenSource Url):https://github.com/xinthink/react-native-material-kit开源编程语言(OpenSource Language):TypeScript 76.4%开源软件介绍(OpenSource Introduction):A set of UI components, in the purpose of introducing Material Design to apps built with React Native, quickly and painlessly. Getting StartedFirst, NOTICE:react-native-material-kit >= 0.4.0 only supports react-native >= 0.40.0 react-native-material-kit < 0.4.0 only supports react-native < 0.40.0 iOS
Manually
CocoaPodsOption: UsingAssuming you have CocoaPods installed, create a xcodeproj 'path/to/YourProject.xcodeproj/'
pod 'React', :subspecs => ['Core', 'RCTText', 'RCTWebSocket'], :path => 'node_modules/react-native'
pod 'react-native-material-kit', :path => 'node_modules/react-native-material-kit'
post_install do |installer|
target = installer.pods_project.targets.select{|t| 'React' == t.name}.first
phase = target.new_shell_script_build_phase('Run Script')
phase.shell_script = "if nc -w 5 -z localhost 8081 ; then\n if ! curl -s \"http://localhost:8081/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port 8081 already in use, packager is either not running or not running correctly\"\n exit 2\n fi\nelse\n open $SRCROOT/../node_modules/react-native/packager/launchPackager.command || echo \"Can't start packager automatically\"\nfi"
end Now run Android
Manually
include ':RNMaterialKit'
project(':RNMaterialKit').projectDir = file('../node_modules/react-native-material-kit/android')
dependencies {
...
compile project(':RNMaterialKit')
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.asList(
new MainReactPackage(),
new ReactMaterialKitPackage()
);
} Manual Installation IssuesIf you experience any trouble manually installing Finally, you're good to go, feel free to require Have fun! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论