2017-01-10 6 views
0

Swift 2を使用してiOSアプリケーションにReact Nativeビューを表示しようとしています.Racact NativeはHTTP 406 Not Acceptableエラーメッセージを返します。iOS上でReact Nativeが返されるHTTP 406 Not Acceptableエラーメッセージ

let bridge = RCTBridge(bundleURL: jsCodeLocation, moduleProvider: nil, launchOptions: ["controller":self]) 
let reactRootView: RCTRootView = RCTRootView(bridge: bridge, moduleName: moduleName, initialProperties: initialProperties) 
reactRootView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight] 
reactRootView.delegate = self 
let viewController = UIViewController() 
viewController.view.addSubview(reactRootView) 
self.navigationController?.pushViewController(viewController, animated: true) 

修正することをお勧めしますか?

答えて

0

私は失敗の原因を発見しました:間違ったJSコードの場所のURL。

関連する問題