|
|
@@ -21,6 +21,8 @@ class Prescription extends Component<Props> { |
|
|
|
result:[], |
|
|
|
api_status:0, |
|
|
|
activee:true, |
|
|
|
|
|
|
|
dataExist:false |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
@@ -50,7 +52,7 @@ class Prescription extends Component<Props> { |
|
|
|
headers: { Authorization: `Bearer ${global.fcm_token}` }, |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.setState({ result: res.data }) |
|
|
|
this.setState({ result: res.data,dataExist:true }) |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
.catch((res) => { |
|
|
@@ -126,7 +128,7 @@ class Prescription extends Component<Props> { |
|
|
|
</ListItem> |
|
|
|
))} |
|
|
|
</List> |
|
|
|
{this.state.activee && |
|
|
|
{!this.state.dataExist && |
|
|
|
<View> |
|
|
|
<View style={styles.pre_style16}> |
|
|
|
<LottieView source={no_prescription_lottie} autoPlay loop /> |
|
|
|