Snapshot của xinthink/react-native-material-kit: 4.8k★ · TypeScript · Mobile. Bringing Material Design to React Native
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A set of UI components, in the purpose of introducing Material Design to apps built with React Native, quickly and painlessly.
Getting Started
First, cd to your RN project directory, and install RNMK through rnpm . If you don't have rnpm, you can install RNMK from npm with the command npm i -S react-native-material-kit and link it manually (see below).
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
React Native < 0.29 (Using rnpm)
rnpm install react-native-material-kit
React Native >= 0.29
npm install -S react-native-material-kit
react-native link react-native-material-kit
Manually
Add node_modules/react-native-material-kit/iOS/RCTMaterialKit.xcodeproj to your xcode project, usually under the Libraries group
Add libRCTMaterialKit.a (from Products under RCTMaterialKit.xcodeproj) to build target's Linked Frameworks and Libraries list
Option: Using CocoaPods
Assuming you have CocoaPods installed, create a PodFile like this in your app's project directory. You can leave out the modules you don't need.
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 pod install. This will create an Xcode workspace containing all necessary native files, including react-native-material-kit. From now on open YourProject.xcworkspace instead of YourProject.xcodeproject in Xcode. Because React Native's iOS code is now pulled in via CocoaPods, you also need to remove the React, RCTImage, etc. subprojects from your app's Xcode project, in case they were added previously.
Android
React Native < 0.29 (Using rnpm)
rnpm install react-native-material-kit
React Native >= 0.29
npm install -S react-native-material-kit
react-native link react-native-material-kit
Manually
JDK 7+ is required
Add the following snippet to your android/settings.gradle:
include ':RNMaterialKit'
project(':RNMaterialKit').projectDir = file('../node_modules/react-native-material-kit/android')
Declare the dependency in your android/app/build.gradle
The two Text tags here, similar to State List in Android development, which can give you the flexibility to decide what content and how it is shown for each state of the toggle. For example, you can use react-native-icons here, or any other sophisticated contents.
xinthink/react-native-material-kit thuộc nhóm Mobile trên TopGit, cùng 2 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về xinthink/react-native-material-kit ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/xinthink/react-native-material-kit là nguồn chính thức.
Vì sao xinthink/react-native-material-kit được xếp vào nhóm Mobile?
TopGit xếp xinthink/react-native-material-kit vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "material-design", "react-native"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
xinthink/react-native-material-kit có phải mã nguồn mở không?
Có — xinthink/react-native-material-kit phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/xinthink/react-native-material-kit.
xinthink/react-native-material-kit là gì?
xinthink/react-native-material-kit (xinthink/react-native-material-kit) là dự án TypeScript trên GitHub. Theo mô tả gốc: Bringing Material Design to React Native
xinthink/react-native-material-kit so với các dự án Mobile khác thế nào?
xinthink/react-native-material-kit được TopGit xếp vào nhóm Mobile, với 4.8k sao GitHub và viết bằng TypeScript. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
react-native-material-kit có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về react-native-material-kit.