Suyash Srivastava před 3 roky
rodič
revize
e60e555d86
2 změnil soubory, kde provedl 7 přidání a 4 odebrání
  1. +4
    -2
      src/views/Prescription.js
  2. +3
    -2
      src/views/ViewPrescription.js

+ 4
- 2
src/views/Prescription.js Zobrazit soubor

@@ -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 />


+ 3
- 2
src/views/ViewPrescription.js Zobrazit soubor

@@ -25,7 +25,8 @@ class ViewPrescription extends Component<Props> {
data:this.props.route.params.data,
image:[],
isImageViewVisible:false,
imageURI:''
imageURI:'',
dataExist:false
}
}

@@ -54,7 +55,7 @@ class ViewPrescription extends Component<Props> {
(uri) => {
this.setState({imageUri:uri});
console.log(uri)
alert('Success');
alert('Successfully Saved',uri);
// setSavedImagePath(uri);
// setImageURI(uri);
},


Načítá se…
Zrušit
Uložit