这是一个用纯React-Native 构建的App 项目,界面仿了饿了吗主要界面,仅供学习使用。有兴趣的同仁可以下载代码,提出您宝贵意见。项目持续更新中....
(这里假设你已经安装配置好react-native的开发环境,如果没有请点击这里 https://reactnative.cn/docs/getting-started.html)
run the following command:
1.cd path '/element',then run command 'yarn install' install node_modules eg:
$ cd /Users/example/Desktop/element-react-native/element
$ yarn install
2.Run instructions for iOS:
(1)cd path '/element/ios' ,run command 'pod install'
$ pod install
(2)cd path '/element', run command 'react-native run-ios'
$ react-native run-ios
--or-- Open element/ios/elementStu.xcworkspace in Xcode or run "xed -b ios" ,Hit the Run button
3.Run instructions for Android: Have an Android emulator running (quickest way to get started), or a device connected;
$ react-native run-android