Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #632 using relative path instead of absolute path for Image tag #633

Merged
merged 1 commit into from
Apr 3, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/EmbeddedApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ React.AppRegistry.registerComponent('SimpleApp', () => SimpleApp);

You should now add a container view for the React Native component. It can be any `UIView` in your app.

![Container view example](https://github.com/facebook/react-native/blob/master/website/src/react-native/img/EmbeddedAppContainerViewExample.png)
![Container view example](/react-native/img/EmbeddedAppContainerViewExample.png)

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 :)).

Expand Down Expand Up @@ -150,7 +150,7 @@ This command will start up a React Native development server within our CocoaPod

Now compile and run your app. You shall now see your React Native app running inside of the `ReactView`.

![Example](https://github.com/facebook/react-native/blob/master/website/src/react-native/img/EmbeddedAppExample.png)
![Example](/react-native/img/EmbeddedAppExample.png)

Live reload works from the simulator, too! You’ve got a simple React component totally encapsulated behind an Objective-C `UIView` subclass.

Expand Down