react native - Recycler view can't be displayed -


i follow npm documentation recylerview react-native-recycler-listview .

i have checked steps described in documentation. when running result : enter image description here

this code :

/** import react, { component } 'react'; import { appregistry, stylesheet, text, view, dimensions  } 'react-native'; import listviewcustom 'react-native-recycler-listview'; export default class menu  extends  component { constructor(props) {   super(props);   var array = [];   for(var  = 0; < 100; i++){     array.push({"title":"title","subtitle":"subtiles"});   }   this.state = {     datasource:{"names": array}   };   }   render() { return ( <view style={styles.container}>   <listviewcustom    src={this.state.datasource}   customstyle={{"fontsize":"12","padding":"0","fontcolor":"red"}}   style={{flex:1,width:dimensions.get('window').width, }}>   </listviewcustom>  </view>  );  }  }  const styles = stylesheet.create({   container: {   flex: 1,  }  }) 

any appreciated


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -