2017-09-26 54 views
0

我使用一個反應,應用程序工作草案,JS反應程序草案,JS,但是當我跑我的應用我一直這個錯誤不能運行使用的Android手機

error

這是我的JS:

import React from 'react'; 
import { StyleSheet, Text, View } from 'react-native'; 
import {Editor, EditorState} from 'draft-js'; 
export default class App extends React.Component { 
    constructor(props) { 
     super(props); 
     this.state = {editorState: EditorState.createEmpty()}; 
     this.onChange = (editorState) => this.setState({editorState}); 
    } 
    render() { 
     return (
      <Editor editorState={this.state.editorState} onChange={this.onChange} /> 
     ); 
    } 
} 

const styles = StyleSheet.create({ 
    container: { 
    flex: 1, 
    backgroundColor: '#fff', 
    alignItems: 'center', 
    justifyContent: 'center', 
    }, 
}); 
+0

你嘗試重置打包緩存中的錯誤消息建議? – Kraylog

+0

我試過但徒勞無功。 – sana

回答

相關問題