Welcome to the CSDN-markdown Editor, csdn-markdown
At the beginning, I refused to develop ios because I was a little annoyed when I saw the oc syntax. I really didn't want to hide it. Maybe Apple realized this problem, so I launched swift, after studying it, I felt like a programming language. At least it was more user-friendly, but Xcode code was too weak to complete. It may be because idea is used to it, and xcode is really not used to it, I felt weak when I installed the plug-in. After a long wait, I put it on hold.
RecentlyReactjs
It is thought-provoking, componentized, and extremely simple. It only requires html + js to be easily mastered and has no complicated concept. react native is based on react, it is designed to use react to develop local apps (currently only ios is supported, android is estimated to be supported by March). web developers can easily develop ios without learning object-c, swift,
So I usedReact native
The homepage of A Meituan Client
Trainer, as long as it is a layout, there are a lot of code for your reference, such as using a third-party open-source library to achieve some results, custom headers, icons, sliding switching effects, lists, flex Layout
Used components:
- NavigatorIOS
- React-native-swiper
- React-native-icons
- React-native-navbar
- ListView
- WebView
Procedure
1. npm install 2. Use Xcode to open meituan. xcodeproj 3. Commmand + R
The interface imitates the applications on the official website.
The following figure shows the effect.
The code is uploaded to github. Click react-native-meituan to view the code.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.