2017-07-02 6 views
0

私の反応ネイティブアプリの状態を変更しようとしていました。ただし、変更後、次のエラーメッセージが表示されます。 Error MessageReact-Native/VirtualizedSectionList.jsでプロパティの長さが未定義になることはありません

私はスタックを、反応したネイティブのVirtualizedSectionListの230行目までトレースしました。私は何が正確にエラーの原因になるのかはわかりません。潜在的な解決策は、私の反応ネイティブの店をリセットするかもしれませんが、私はそれを行う方法を把握できませんでした。ここに私の現在の還元店コードがあります。

'use strict'; 
 

 

 
import {applyMiddleware, createStore} from 'redux'; 
 
import thunk from 'redux-thunk'; 
 
import {persistStore, autoRehydrate} from 'redux-persist'; 
 
import {AsyncStorage} from 'react-native'; 
 
import reducers from '../reducers'; 
 

 
const logger = store => next => action => { 
 
\t if(typeof action === 'function') console.log('dispatching a function'); 
 
\t else console.log('dispatching', action); 
 
\t let result = next(action); 
 
\t console.log('next state', store.getState()); 
 
\t return result; 
 
} 
 

 
let middlewares = [ 
 
\t logger, 
 
\t thunk 
 
]; 
 

 
let createAppStore = applyMiddleware(...middlewares)(createStore); 
 

 

 
export default function configureStore(onComplete:()=>void){ 
 
\t const store = autoRehydrate()(createAppStore)(reducers); 
 
\t let opt = { 
 
\t \t storage: AsyncStorage, 
 
\t \t transform: [], 
 
\t \t blacklist: ['nav','util'] 
 
\t }; 
 
\t persistStore(store, opt, onComplete); 
 
\t return store; 
 
}

おかげ

答えて

0

これは店の問題をいないようだ、私はあなたが他のコードをアップロードする場合は、何か他のものでもよいが、あなたがウルの状態を使用している場所、それがあると思います私はそれを確認することができますが、私はこのエラーが店舗に起因するとは思わない。

+0

それどころか、行の作成方法が間違っていました。助けてくれてありがとう。 – jaysig

関連する問題