Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

ReferenceError: Can't find variable: networkRequest

$
0
0

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>
    }
  }

[When I scroll activity for refresh that time generate error

For this refresh indicator for use network request


Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>