2016-07-08 7 views
0

私はバインドされていますが、デバッガが使用可能になる前にアプリケーションが失敗するため、この問題をデバッグする方法はわかりません。React Nativeにアップグレードする際の問題0.26

enter image description here

私は(0.29にアップグレードするので、複数の段階でこれをやって、私たちのコードベースのために設定され、巨大な変更になります)0.26ネイティブ反応するようにアップグレードしようとしたとき、それはすべてが始まりました。

私はreactからComponentをインポートするドキュメントを踏襲していると私はModule AppRegistry is not a registered callable module.を見ているしかしreact-native

からの残りの部分は、私は限りモジュールは0.26

をサポートするよう少なくとも最新の依存関係を更新したりしています私はデバッガを接続できません(私はここで間違っていると思います)。コードベースを検索しましたが、AppRegistryを使用するコンポーネントはありません。ここで

がpackage.jsonが

{ 
    "name": "MyProjectName", 
    "version": "1.2.0", 
    "private": true, 
    "dependencies": { 
    "code-push": "^1.8.0-beta", 
    "dateformat": "^1.0.12", 
    "jasmine-core": "^2.4.1", 
    "key-mirror": "^1.0.1", 
    "numeral": "^1.5.3", 
    "react": "15.0.2", 
    "react-addons-update": "15.0.2", 
    "react-mixin": "^3.0.3", 
    "react-native": "^0.26.3", 
    "react-native-code-push": "^1.10.0-beta", 
    "react-native-collapsible": "^0.7.0", 
    "react-native-custom-action-sheet": "0.0.11", 
    "react-native-datetime": "0.1.2", 
    "react-native-dismiss-keyboard": "^1.0.0", 
    "react-native-drawer": "^2.2.6", 
    "react-native-fabric": "0.0.2", 
    "react-native-loading-spinner-overlay": "^0.1.1", 
    "react-native-onesignal": "^1.1.5", 
    "react-native-picker-android": "^1.0.2", 
    "react-native-tab-navigator": "^0.3.2", 
    "react-redux": "^4.4.0", 
    "react-timer-mixin": "^0.13.3", 
    "realm": "^0.14.1", 
    "redux": "^3.5.2", 
    "redux-logger": "^2.6.1", 
    "validator": "^5.4.0" 
    }, 
    "devDependencies": {} 
} 

だここでこの問題を解決する方法についてindex.ios.js(アンドロイド版も同じことである)

'use strict'; 
import React, { Component } from 'react'; 
import { 
    StyleSheet, 
    Text, 
    View, 
    Navigator, 
} from 'react-native'; 

import { Provider } from 'react-redux'; 
import configureStore from './lib/store/configureStore'; 

import App from './lib/app'; 

class MyProjectName extends Component { 

    constructor(props) { 
     super(props); 
    } 

    render() { 
     let store = configureStore({}); 
     return (
      <Provider store={store}> 
       <App {...this.props}/> 
      </Provider> 
     ); 
    } 

    componentWillMount() { 

    } 

    componentDidMount(){ 
     // const CodePush = require('react-native-code-push'); 
     // wait for 3 seconds otherwise rollback this change 
     // CodePush.sync({ rollbackTimeout: 3000 }); 
    } 

} 

module.exports = MyProjectName; 

任意のヒントですか?

+0

あなたの 'index.js'ファイルの内容を表示できますか? – Cherniv

+0

私は 'index.ios.js'の内容で質問を更新しました –

+1

はこれに関連します:http://stackoverflow.com/a/30427137/1206613 – Cherniv

答えて

0

node_modulesのモジュールが依然としてReactからreact-nativeまでのモジュールを必要としていたときにこのメッセージが表示されました。

私はあなたのネイティブモジュールを反応させると、まだ使用のものを探しているのすべてを通過することをお勧め:

var React = require('react-native'); 

とに置き換える:

import React from 'react'; 

と同様に、インポートからネイティブモジュールを反応させますreact-native

関連する問題