News Headlines iOS source code project, news headlines ios source code

Source: Internet
Author: User

News Headlines iOS source code project, news headlines ios source code
<Ignore_js_op>

 

Source code download: http://code.662p.com/view/13343.html
Prepared by yadl, source code TopNewsIOS, news headlines IOS version integrated React remote offline package,

Toutiao IOS + ReactNative hybrid version (Layout adopts Masonry)

Use Masonry for ios ui AutoLayout adaptation, initially implement offline package download of React Native, and then decompress it to the sandbox directory for future IOS plug-ins for chemical engineering!

IOS Native engineering integration React Native

1. Get the code from https://github.com/facebook/react-native.gitpull. Then run npm install in the CD directory (provided that you have installed the node environment)
2. drag React under the React directory. xcodeproj to the native project, other needs to go to the Libary directory React/React. xcodeproj Libraries/Image/RCTImage. xcodeproj Libraries/Network/RCTNetwork. xcodeproj Libraries/Text/RCTText. xcodeproj Libraries/Vibration/RCTVibration. xcodeproj Libraries/WebSocket/RCTWebSocket. xcodeproj Libraries/LinkingIOS/RCTLinking. xcodeproj Libraries/Settings/RCTSettings. xcodeproj 3. add the corresponding. file a 4. open your project file, select Build Settings, Search for Header Search Paths, and add the directory where the React library is located (check the recursive option)

5. create a separate react native project and create UI functions. 6. use the react-native bundle -- entry-file index command in the react native project. ios. js -- bundle-output. /bundle/news. ios. jsbundle -- platform ios -- assets-dest. /bundle -- dev true package out offline jsbundle

7. compress the file into a zip file on the server so that you can download it dynamically, decompress it, and load the offline jsbunle through the path search. For details, see module/settings/ReactController. m.

For news, the API is easier to find. & amp; #128516; you can also watch news and entertainment while doing it. This project will be continuously updated. Why not? If you have any questions, please give me more comments!

 

 

Http://ios.662p.com/thread-2833-1-1.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.