Rendering local images from database
问题 I'm making a country picker with flags. The country names and flag image name is coming from database, like this (sample): dataSource: [ { id: 1, name: "Afghanistan", image: '../assets/flags/af.png' }, { id: 2, name: "Bahrain", image: '../assets/flags/ba.png' }, { id: 3, name: "Canada", image: '../assets/flags/ca.png' }] Then I send that dataSource to my component <CountryPickerFlags dataSource={this.state.dataSource} /> Then in the component FlatList (renderItem) I do: _renderItemListValues