Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RN-LVFL-1 - importing FlatList
import React, {Component} from "react";
import {
Image,
StyleSheet,
Text,
View,
FlatList, //Replace ListView with FlatList
ActivityIndicator
} from "react-native";
export default class Application extends Component {
...
render() {
if (this.state.isLoading) {
return (
<View style={styles.container}>
<ActivityIndicator size="large"/>
</View>
);
} else {
return (
<FlatList
...
/>
);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.