React Native app for iOS :github.com/kailuo99/to…

Welcome star,fork….

Project introduction

React Native is an iOS version of Newtiao APP.

React Native Communication group 2 (496601483)

Running effect

Functional specifications
  1. Gesture support switch interface
  2. The drop-down refresh
  3. Pull up to load more
  4. Collection function
Component description
  1. Icon: oblador/react – native – vector – the ICONS
  2. Obtain device information: RebeccaHughes /react-native device-info
Simulator operation
  1. Git Clone github.com/kailuo99/to… The source code
  2. cd toutiao && npm install
  3. Open toutiao. xcodeProj in the ios directory and click Run in Xcode.
Mobile Online use
  1. Modify appdelegate.m in Xcode. Change the localhost to your computer’s IP address. Computers and mobile phones need to be on the same LOCAL area network.
  2. Click run in Xcode. Note: If there is a message that cannot run due to security. Execute in order: Settings in mobile – General – Device Management – Trust. Click the instance icon to run it.
Offline use of mobile phone
  1. Remove the comment from the comment Appdelegate.m and read the document for details.
  2. Run the following command in the project directory: react-native bundle –dev false –platform ios –bundle-output main.jsbundle –entry-file index.ios.js
  3. XCODe: Set your project -> Build Settings ->Linking->Dead Code Stripping to No.
  4. XCODe: menu -> Product -> Scheme -> Edit Scheme -> Run -> Build Config set release, debug executable removed.

The first step is to compress the JS bundle. Steps 2 and 3 are to remove shake Your Phone mode.