y     let result;     try {       result = await axios.request({         method: 'get',         url: `https://developers.zomato.com/api/v0.0/search?category=${id}`,         headers: {           'Content-Type': 'application/json',           'user-key': "a00bd00da00000a00b0000bf0ca000a0",         },       })     } catch (err) {       err => console.log(err)     }     this.setState({       isLoading: false,       data: result.data.restaurants     })   } render() {     return (       <View>         {           this.state.isLoading ?             <View style={{ flex: 0, padding: 00 }}>               <ActivityIndicator style={{color:'red'}} />             </View> :             (               this.state.data.length == 0 ?                 <View style={{ flex: 0, padding: 00 }}>                   <Text style={{ color: '#000', fontWeight: 'bold' }}>No restaurants from selected category</Text>                 </View> :                 <FlatList                   style={{ marginBottom: 00 }}                   keyExtractor={item => item.id}                   data={this.state.data}                   renderItem={({ item }) =>                   <TouchableHighlight onPress={()=> 