You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/EmbeddedApp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Integration with Existing App
4
4
layout: docs
5
5
category: Guides
6
6
permalink: docs/embedded-app.html
7
-
next: activityindicatorios
7
+
next: javascript-environment
8
8
---
9
9
10
10
Since React makes no assumptions about the rest of your technology stack – it’s commonly noted as simply the `V` in `MVC` – it’s easily embeddable within an existing non-React Native app. In fact, it integrates with other best practice community tools like [CocoaPods](http://cocoapods.org/).
Copy file name to clipboardExpand all lines: docs/JavaScriptEnvironment.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,18 @@
1
+
---
2
+
id: javascript-environment
3
+
title: JavaScript Environment
4
+
layout: docs
5
+
category: Guides
6
+
permalink: docs/javascript-environment.html
7
+
next: activityindicatorios
8
+
---
1
9
2
10
## JavaScript Runtime
3
11
4
12
When using React Native, you're going to be running your JavaScript code in two environments:
5
13
6
14
* In the simulator and on the phone: [JavaScriptCore](http://trac.webkit.org/wiki/JavaScriptCore) which is the JavaScript engine that powers Safari and web views. Due to the absence of writable executable memory in iOS apps, it doesn't run with JIT.
7
-
* When using Chrome debugging, it runs all the JavaScript code within Chrome itself and communicate with the obj-c via WebSocket. So you are using [V8](https://code.google.com/p/v8/).
15
+
* When using Chrome debugging, it runs all the JavaScript code within Chrome itself and communicate with Objective-C via WebSocket. So you are using [V8](https://code.google.com/p/v8/).
8
16
9
17
While both environments are very similar, you may end up hitting some inconsistencies. We're likely going to experiment with other JS engines in the future, so it's best to avoid relying on specifics of any runtime.
10
18
@@ -14,12 +22,14 @@ While both environments are very similar, you may end up hitting some inconsiste
14
22
React Native ships with many JavaScript transforms to make writing code more enjoyable. If you are curious, you can see the [implementation of all those transformations](https://github.com/facebook/jstransform/tree/master/visitors). Here's the full list:
0 commit comments