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
- Gesture support switch interface
- The drop-down refresh
- Pull up to load more
- Collection function
Component description
- Icon: oblador/react – native – vector – the ICONS
- Obtain device information: RebeccaHughes /react-native device-info
Simulator operation
- Git Clone github.com/kailuo99/to… The source code
- cd toutiao && npm install
- Open toutiao. xcodeProj in the ios directory and click Run in Xcode.
Mobile Online use
- 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.
- 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
- Remove the comment from the comment Appdelegate.m and read the document for details.
- Run the following command in the project directory: react-native bundle –dev false –platform ios –bundle-output main.jsbundle –entry-file index.ios.js
- XCODe: Set your project -> Build Settings ->Linking->Dead Code Stripping to No.
- 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.