diff --git a/docs/0.54/integration-with-existing-apps.html b/docs/0.54/integration-with-existing-apps.html index 3e6ca34fb8c..fa119eea6bf 100644 --- a/docs/0.54/integration-with-existing-apps.html +++ b/docs/0.54/integration-with-existing-apps.html @@ -130,14 +130,14 @@
Install the react and react-native packages. Open a terminal or command prompt, then navigate to the directory with your package.json file and run:
$ yarn add react-native
-This will print something like:
+This will print a message similar to the following (scroll up in the yarn output to see it):
-warning "react-native@0.52.2" has unmet peer dependency "react@16.2.0".
This is OK, it means we also need to install react:
-$ yarn add react@16.2.0 # Make sure you use the same react version as printed by yarn when installing react-native!
+This is OK, it means we also need to install React:
+$ yarn add react@version_printed_above
-This will create a new /node_modules folder. This folder stores all the JavaScript dependencies required to build your project.
+Yarn has created a new /node_modules folder. This folder stores all the JavaScript dependencies required to build your project.
Add node_modules/ to your .gitignore file.
3. Install CocoaPods
@@ -156,6 +156,9 @@
Assume the app for integration is a 2048 game. Here is what the main menu of the native application looks like without React Native.

+Command Line Tools for Xcode
+Install the Command Line Tools. Choose "Preferences..." in the Xcode menu. Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.
+
Configuring CocoaPods dependencies
Before you integrate React Native into your application, you will want to decide what parts of the React Native framework you would like to integrate. We will use CocoaPods to specify which of these "subspecs" your app will depend on.
The list of supported subspecs is available in /node_modules/react-native/React.podspec. They are generally named by functionality. For example, you will generally always want the Core subspec. That will get you the AppRegistry, StyleSheet, View and other core React Native libraries. If you want to add the React Native Text library (e.g., for <Text> elements), then you will need the RCTText subspec. If you want the Image library (e.g., for <Image> elements), then you will need the RCTImage subspec.
@@ -175,7 +178,8 @@ target 'NumberTileGame' 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
- 'RCTWebSocket', # needed for debugging
+ 'RCTWebSocket', # Needed for debugging
+ 'RCTAnimation', # Needed for FlatList and animations running on native UI thread
# Add any other subspecs you want to use in your project
]
# Explicitly include Yoga if you are using RN >= 0.42.0
@@ -183,7 +187,7 @@ target 'NumberTileGame' # Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
- pod 'glog', :podspec => 'node_modules/react-native/third-party-podspecs/glog.podspec'
+ pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
@@ -214,7 +218,7 @@ target 'swift-2048'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
- pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
+ pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
@@ -233,6 +237,9 @@ Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 1 total pod installed.
++If this fails with errors mentioning
+xcrun, make sure that in Xcode in Preferences > Locations the Command Line Tools are assigned.
If you get a warning such as "The
diff --git a/docs/contributing.html b/docs/contributing.html index fbfcb33fff6..55ff571d3d5 100644 --- a/docs/contributing.html +++ b/docs/contributing.html @@ -35,7 +35,7 @@swift-2048 [Debug]target overrides theFRAMEWORK_SEARCH_PATHSbuild setting defined inPods/Target Support Files/Pods-swift-2048/Pods-swift-2048.debug.xcconfig. This can lead to problems with the CocoaPods installation", then make sure theFramework Search PathsinBuild Settingsfor bothDebugandReleaseonly contain$(inherited).We will do our best to keep
masterin good shape, with tests passing at all times. But in order to move fast, we will make API changes that your application might not be compatible with. We will do our best to communicate these changes and version appropriately so you can lock into a specific version if need be.To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.
Bugs
-We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.
+We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you a are certain this is a new, unreported bug, you can submit a bug report.
If you have questions about using React Native, the Community page list various resources that should help you get started.
We also have a place where you can request features or enhancements. If you see anything you'd like to be implemented, vote it up and explain your use case.
Reporting new issues
diff --git a/docs/improvingux.html b/docs/improvingux.html index 074148b11b0..c3aed5e85b7 100644 --- a/docs/improvingux.html +++ b/docs/improvingux.html @@ -14,7 +14,6 @@Manage layout when keyboard is visible Make tappable areas larger Use Android Ripple -Screen orientation lock Learn More
@@ -43,7 +42,7 @@Screen orientation lock
-Unless supporting both, it is considered good practice to lock the screen orientation to either portrait or landscape. On iOS, in the General tab and Deployment Info section of Xcode enable the Device Orientation you want to support (ensure you have selected iPhone from the Devices menu when making the changes). For Android, open the AndroidManifest.xml file and within the activity element add
+'android:screenOrientation="portrait"'to lock to portrait or'android:screenOrientation="landscape"'to lock to landscape.Unless supporting both, it is considered good practice to lock the screen orientation to either portrait or landscape. On iOS, in the General tab and Deployment Info section of Xcode enable the Device Orientation you want to support (ensure you have selected iPhone from the Devices menu when making the changes). For Android, open the AndroidManifest.xml file and within the activity element add 'android:screenOrientation=”portrait”' to lock to portrait or 'android:screenOrientation=”landscape”' to lock to landscape.
Learn more
Material Design and Human Interface Guidelines are great resources for learning more about designing for mobile platforms.