mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-02 17:18:58 +08:00
Local image resources for docs
This commit is contained in:
@@ -73,7 +73,7 @@ React.AppRegistry.registerComponent('SimpleApp', () => SimpleApp);
|
||||
|
||||
You should now add container view for React Native component. It can be any **UIView** in your app.
|
||||
|
||||

|
||||

|
||||
|
||||
However, let's subclass **UIView** for the sake of clean code. Let's name it **ReactView**. Open up **Yourproject.xcworkspace** and create a new class **ReactView** (You can name it whatever you like :)).
|
||||
|
||||
@@ -132,7 +132,7 @@ $ ./Pods/React/packager/packager.sh --root ./ReactComponents
|
||||
|
||||
Now compile and run your app. You shall now see your React Native app running inside of the **ReactView**.
|
||||
|
||||

|
||||

|
||||
|
||||
## Conclusion
|
||||
|
||||
|
||||
BIN
website/src/react-native/img/EmbeddedAppContainerViewExample.png
Normal file
BIN
website/src/react-native/img/EmbeddedAppContainerViewExample.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
website/src/react-native/img/EmbeddedAppExample.png
Normal file
BIN
website/src/react-native/img/EmbeddedAppExample.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user