Flatlist реагировать на родной не показывать содержание - PullRequest
0 голосов
/ 23 ноября 2018

Реагирующий на родной список Flatlist не отображает содержимое.

В эмуляторе, но в Expo на ios или android, а также не показывает содержимое FlatLIst.

Android / iOS Expo App

Эмулятор ios

@observer
export default class PartidosComponent extends Component {
  constructor(props) {
    super(props);
    this.state = {
      refreshing: false
    };
  }

  componentDidMount = () => {
    appstore.partidosstore.listadoPartidos();
  };

  onPress = plato => {
    //todo
  };

  onRefresh = () => {
    //todo
  };

  render() {
    var rows = appstore.partidosstore.partidos;
    return (
      <View styleName="content">
        <FlatList
          style={{ height: "100%" }}
          data={rows}
          keyExtractor={item => item.idPartido.toString()}
          refreshing={this.state.refreshing}
          onRefresh={this.onRefresh}
          renderItem={({ item }) => (
            ...
          )}
        />
      </View>
    );
  }
}
...