When I used scrollable-tabview in import refresh functinality then it will raised one error like this.
ReferenceError: Can't find variable: networkRequest
_onRefresh = (callback) => {
networkRequest().then(response => callback(response))
}
render() {
return <ScrollableTabView
refreshControlStyle={{backgroundColor: 'red'}}
pullToRefresh={this._onRefresh}
>
<ScrollView tabLabel="Pending">
<View>
<Text>Pending</Text>
</View>
</ScrollView>
<ScrollView tabLabel="Upcoming">
<View>
<Text>Upcoming</Text>
</View>
</ScrollView>
<ScrollView tabLabel="Completed">
<View>
<Text>Completed</Text>
</View>
</ScrollView>
</ScrollableTabView>
}
}
[