|
|
@@ -132,14 +132,18 @@ export default function OrderScreen({ navigation }) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (maxMove._value - y < 200) {
|
|
|
- setbackgorundColor(
|
|
|
- `rgba(255, 194, 28,${Math.ceil((1 / 200) * (maxMove._value - y))})`
|
|
|
- );
|
|
|
- setshowDetail(false);
|
|
|
- } else {
|
|
|
- setbackgorundColor('rgba(255, 194, 28,1)');
|
|
|
- setshowDetail(true);
|
|
|
+ if (!finish) {
|
|
|
+ if (maxMove._value - y < 200) {
|
|
|
+ setbackgorundColor(
|
|
|
+ `rgba(255, 194, 28,${Math.ceil(
|
|
|
+ (1 / 200) * (maxMove._value - y)
|
|
|
+ )})`
|
|
|
+ );
|
|
|
+ setshowDetail(false);
|
|
|
+ } else {
|
|
|
+ setbackgorundColor('rgba(255, 194, 28,1)');
|
|
|
+ setshowDetail(true);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
onPanResponderRelease: () => {
|
|
|
@@ -155,6 +159,7 @@ export default function OrderScreen({ navigation }) {
|
|
|
y: 0,
|
|
|
});
|
|
|
setshowDetail(true);
|
|
|
+ setbackgorundColor('rgba(255, 194, 28,1)');
|
|
|
} else {
|
|
|
maxMove.setValue(Dimensions.get('window').height * 0.6);
|
|
|
pan.setValue({
|