Renders a image picker on iOS.
-A wrapper around UINavigationController
, enabling you to implement a navigation stack.
Renders a UIProgressView
on iOS.
A library for creating fluid, powerful animations that are easy to build and maintain.
Provides access to the local camera roll / gallery.
-Provides an interface for setting and getting content from the clipboard on both iOS and Android.
diff --git a/website/versioned_docs/version-0.5/debugging.md b/website/versioned_docs/version-0.5/debugging.md index fa2b6bd3ec8..a839a4d548b 100644 --- a/website/versioned_docs/version-0.5/debugging.md +++ b/website/versioned_docs/version-0.5/debugging.md @@ -24,7 +24,7 @@ Instead of recompiling your app every time you make a change, you can reload you You can speed up your development times by having your app reload automatically any time your code changes. Automatic reloading can be enabled by selecting "Enable Live Reload" from the Developer Menu. -You may even go a step further and keep your app running as new versions of your files are injected into the JavaScript bundle automatically by enabling [Hot Reloading](https://facebook.github.io/react-native/blog/2016/03/24/introducing-hot-reloading.html) from the Developer Menu. This will allow you to persist the app's state through reloads. +You may even go a step further and keep your app running as new versions of your files are injected into the JavaScript bundle automatically by enabling [Hot Reloading](https://facebook.github.io/react-native/blog/2016/03/24/introducing-hot-reloading) from the Developer Menu. This will allow you to persist the app's state through reloads. > There are some instances where hot reloading cannot be implemented perfectly. If you run into any issues, use a full reload to reset your app. @@ -89,7 +89,7 @@ However, there are some disadvantages: ## React Developer Tools -You can use [the standalone version of React Developer Tools](https://github.com/facebook/react-devtools/tree/master/packages/react-devtools) to debug the React component hierarchy. To use it, install the `react-devtools` package globally: +You can use [the standalone version of React Developer Tools](https://github.com/facebook/react/tree/master/packages/react-devtools) to debug the React component hierarchy. To use it, install the `react-devtools` package globally: ``` npm install -g react-devtools diff --git a/website/versioned_docs/version-0.5/direct-manipulation.md b/website/versioned_docs/version-0.5/direct-manipulation.md index 5229742d2ee..b759df48f30 100644 --- a/website/versioned_docs/version-0.5/direct-manipulation.md +++ b/website/versioned_docs/version-0.5/direct-manipulation.md @@ -8,7 +8,7 @@ It is sometimes necessary to make changes directly to a component without using > Use setNativeProps when frequent re-rendering creates a performance bottleneck > -> Direct manipulation will not be a tool that you reach for frequently; you will typically only be using it for creating continuous animations to avoid the overhead of rendering the component hierarchy and reconciling many views. `setNativeProps` is imperative and stores state in the native layer (DOM, UIView, etc.) and not within your React components, which makes your code more difficult to reason about. Before you use it, try to solve your problem with `setState` and [shouldComponentUpdate](http://facebook.github.io/react/advanced-performance.md#shouldcomponentupdate-in-action). +> Direct manipulation will not be a tool that you reach for frequently; you will typically only be using it for creating continuous animations to avoid the overhead of rendering the component hierarchy and reconciling many views. `setNativeProps` is imperative and stores state in the native layer (DOM, UIView, etc.) and not within your React components, which makes your code more difficult to reason about. Before you use it, try to solve your problem with `setState` and [shouldComponentUpdate](https://reactjs.org/docs/optimizing-performance.html#shouldcomponentupdate-in-action). ## setNativeProps with TouchableOpacity @@ -55,7 +55,7 @@ render() { This is computationally intensive compared to the original example - React needs to re-render the component hierarchy each time the opacity changes, even though other properties of the view and its children haven't changed. Usually this overhead isn't a concern but when performing continuous animations and responding to gestures, judiciously optimizing your components can improve your animations' fidelity. -If you look at the implementation of `setNativeProps` in [NativeMethodsMixin](https://github.com/facebook/react-native/blob/master/Libraries/Renderer/oss/ReactNativeRenderer-prod.js) you will notice that it is a wrapper around `RCTUIManager.updateView` - this is the exact same function call that results from re-rendering - see [receiveComponent in ReactNativeBaseComponent](https://github.com/facebook/react-native/blob/fb2ec1ea47c53c2e7b873acb1cb46192ac74274e/Libraries/Renderer/oss/ReactNativeRenderer-prod.js#L5793-L5813). +If you look at the implementation of `setNativeProps` in [NativeMethodsMixin](https://github.com/facebook/react-native/blob/master/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js) you will notice that it is a wrapper around `RCTUIManager.updateView` - this is the exact same function call that results from re-rendering - see [receiveComponent in ReactNativeBaseComponent](https://github.com/facebook/react-native/blob/fb2ec1ea47c53c2e7b873acb1cb46192ac74274e/Libraries/Renderer/oss/ReactNativeRenderer-prod.js#L5793-L5813). ## Composite components and setNativeProps @@ -140,10 +140,10 @@ export default class App extends React.Component { render() { return ( -Follow these instructions if you need to build native code in your project. For example, if you are integrating React Native into an existing application, or if you "ejected" from Expo or Create React Native App, you'll need this section.
+Follow these instructions if you need to build native code in your project. For example, if you are integrating React Native into an existing application, or if you "ejected" from Expo, you'll need this section.
The instructions are a bit different depending on your development operating system, and whether you want to start developing for iOS or Android. If you want to develop for both iOS and Android, that's fine - you just have to pick one to start with, since the setup is a bit different.+A Mac is required to build projects with native code for iOS. You can follow the Quick Start to learn how to build your app using Expo instead.
A Mac is required to build projects with native code for iOS. You can follow the Quick Start to learn how to build your app using Expo instead.
The most fundamental component for building a UI.
-A component for displaying text.
-A component for displaying images.
-A component for inputting text into the app via a keyboard.
-Provides a scrolling container that can host multiple components and views.
-Provides an abstraction layer similar to CSS stylesheets.
-A basic button component for handling touches that should render nicely on any platform.
-Renders the native picker component on iOS and Android.
-A component used to select a single value from a range of values.
-Renders a boolean input.
-A component for rendering performant scrollable lists.
-Like FlatList
, but for sectioned lists.
API to display an iOS action sheet or share sheet.
-Create an iOS alert dialog with a message or create a prompt for user input.
-Renders a date/time picker (selector) on iOS.
-Renders a image picker on iOS.
-Renders a UIProgressView
on iOS.
Handle push notifications for your app, including permission handling and icon badge number.
-Renders a UISegmentedControl
on iOS.
Renders a UITabViewController
on iOS. Use with TabBarIOS.Item.
Detect hardware button presses for back navigation.
-Opens the standard Android date picker dialog.
-Renders a DrawerLayout
on Android.
Provides access to the permissions model introduced in Android M.
-Renders a ProgressBar
on Android.
Opens the standard Android time picker dialog.
-Create an Android Toast alert.
-Renders a Toolbar
on Android.
Container that allows to flip left and right between child views.
-Displays a circular loading indicator.
-Launches an alert dialog with the specified title and message.
-A library for creating fluid, powerful animations that are easy to build and maintain.
-Provides an interface for setting and getting content from the clipboard on both iOS and Android.
-Provides an interface for getting device dimensions.
-Provides a view that moves out of the way of the virtual keyboard automatically.
-Provides a general interface to interact with both incoming and outgoing app links.
-Provides a simple way to present content above an enclosing view.
-Provides access to the device pixel density.
-This component is used inside a ScrollView
to add pull to refresh functionality.
Component to control the app status bar.
-A component that renders web content in a native view.
-Follow these instructions if you need to build native code in your project. For example, if you are integrating React Native into an existing application, or if you "ejected" from Expo, you'll need this section.
- -The instructions are a bit different depending on your development operating system, and whether you want to start developing for iOS or Android. If you want to develop for both iOS and Android, that's fine - you just have to pick one to start with, since the setup is a bit different. - -- -A Mac is required to build projects with native code for iOS. You can follow the Quick Start to learn how to build your app using Expo instead.