This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function runServer(options, readyCallback) { | |
| var app = connect() | |
| .use(loadRawBody) | |
| .use(openStackFrameInEditor) | |
| .use(getDevToolsLauncher(options)) | |
| .use(statusPageMiddleware) | |
| // Temporarily disable flow check until it's more stable | |
| //.use(getFlowTypeCheckMiddleware(options)) | |
| .use(getAppMiddleware(options)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| executeApplicationScript: function(message, sendReply) { | |
| for (var key in message.inject) { | |
| window[key] = JSON.parse(message.inject[key]); | |
| } | |
| loadScript(message.url, sendReply.bind(null, null)); | |
| } | |
| function loadScript(src, callback) { | |
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "remoteModuleConfig": { | |
| "RCTTiming": { | |
| "methods": { | |
| "deleteTimer": { | |
| "type": "remote", | |
| "methodID": 1 | |
| }, | |
| "createTimer": { | |
| "type": "remote", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)executeApplicationScript:(NSString *)script sourceURL:(NSURL *)URL onComplete:(RCTJavaScriptCompleteBlock)onComplete { | |
| NSDictionary *message = @{ | |
| @"method": @"executeApplicationScript", | |
| @"url": RCTNullIfNil(URL.absoluteString), | |
| @"inject": _injectedObjects, | |
| }; | |
| [self sendMessage:message waitForReply:^(NSError *error, NSDictionary *reply) { | |
| onComplete(error); | |
| }]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ws = new DebuggerWebSocket('ws://' + window.location.host + '/debugger-proxy'); | |
| ws.onopen = function() { | |
| if (sessionID) { | |
| setStatus('Debugger session #' + sessionID + ' active.'); | |
| ws.send(JSON.stringify({replyID: parseInt(sessionID, 10)})); | |
| } else { | |
| setStatus('Waiting, press <span class="shortcut">⌘R</span> in simulator to reload and connect.'); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10:48:33.418 'JS->N : RCTUIManager.createView([2,"RCTView",1,{"position":"absolute","left":0,"top":0,"right":0,"bottom":0}])' | |
| 10:48:33.420 'JS->N : RCTUIManager.createView([3,"RCTView",1,{"position":"absolute","left":0,"top":0,"right":0,"bottom":0}])' | |
| 10:48:33.421 'JS->N : RCTUIManager.createView([4,"RCTView",1,{"flex":1,"justifyContent":"center","alignItems":"center","backgroundColor":"#F5FCFF"}])' | |
| 10:48:33.422 'JS->N : RCTUIManager.createView([5,"RCTText",1,{"accessible":true,"isHighlighted":false,"fontSize":20,"textAlign":"center","margin":10}])' | |
| 10:48:33.422 'JS->N : RCTUIManager.createView([6,"RCTRawText",1,{"text":"Welcome to React Native!"}])' | |
| 10:48:33.422 'JS->N : RCTUIManager.manageChildren([5,null,null,[6],[0],null])' | |
| 10:48:33.423 'JS->N : RCTUIManager.createView([7,"RCTText",1,{"accessible":true,"isHighlighted":false,"textAlign":"center","color":"#333333","marginBottom":5}])' | |
| 10:48:33.423 'JS->N : RCTUIManager.createView([8,"RCTRawText",1,{"text":"To get started, edit index.ios.js"}])' | |
| 10:48:33.424 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RCTUIManager.createView([2,"RCTView",1,{"position":"absolute","left":0,"top":0,"right":0,"bottom":0}])' | |
| RCTUIManager.createView([3,"RCTView",1,{"position":"absolute","left":0,"top":0,"right":0,"bottom":0}])' | |
| RCTUIManager.createView([4,"RCTView",1,{"flex":1,"justifyContent":"center","alignItems":"center","backgroundColor":"#F5FCFF"}])' | |
| RCTUIManager.createView([5,"RCTText",1,{"accessible":true,"isHighlighted":false,"fontSize":20,"textAlign":"center","margin":10}])' | |
| RCTUIManager.createView([6,"RCTRawText",1,{"text":"Welcome to React Native!"}])' | |
| RCTUIManager.createView([7,"RCTText",1,{"accessible":true,"isHighlighted":false,"textAlign":"center","color":"#333333","marginBottom":5}])' | |
| RCTUIManager.createView([8,"RCTRawText",1,{"text":"To get started, edit index.ios.js"}])' | |
| RCTUIManager.createView([9,"RCTText",1,{"accessible":true,"isHighlighted":false,"textAlign":"center","color":"#333333","marginBottom":5}])' | |
| RCTUIManager.createView([10,"RCTRawText",1,{"text":"Press Cmd+R to reload,"}])' | |
| RCTUIManager.createView([ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10:48:33.378 'JS->N : RCTTiming.createTimer([1,1,1439920113377,false])' | |
| 10:48:33.389 'JS->N : RCTAsyncLocalStorage.multiGet([["__DEV_WARNINGS_IGNORED"],1])' | |
| 10:48:33.391 'JS->N : RCTAppState.getCurrentAppState([2,3])' | |
| 10:48:33.397 'N->JS : RCTDeviceEventEmitter.emit(["reachabilityDidChange",{"network_reachability":"wifi"}])' | |
| 10:48:33.397 'N->JS : RCTDeviceEventEmitter.emit(["appStateDidChange",{"app_state":"active"}])' | |
| 10:48:33.398 'N->JS : JSTimersExecution.callTimers([[1]])' | |
| 10:48:33.414 'N->JS : <callback for RCTAsyncLocalStorage.multiGet>([null,[["__DEV_WARNINGS_IGNORED",null]]])' | |
| 10:48:33.414 'N->JS : <callback for RCTAppState.getCurrentAppState>([{"app_state":"active"}])' | |
| 10:48:33.414 'N->JS : AppRegistry.runApplication(["AwesomeProject",{"rootTag":1,"initialProps":{}}])' | |
| 10:48:33.415 'Running application "AwesomeProject" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JSValueRef result = JSEvaluateScript(strongSelf->_context.ctx, execJSString, NULL, NULL, 0, &jsError); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| First part | |
| Second Addition |