当たり判定を調整
This commit is contained in:
parent
bc8a786db7
commit
64d56d3df6
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { View, Text, LayoutAnimation } from "react-native";
|
import { View, Text, LayoutAnimation, TouchableOpacity } from "react-native";
|
||||||
|
|
||||||
export const ScrollStickyContent = (props) => {
|
export const ScrollStickyContent = (props) => {
|
||||||
const { currentTrainData, showThrew, setShowThrew, haveThrough } = props;
|
const { currentTrainData, showThrew, setShowThrew, haveThrough } = props;
|
||||||
@ -50,7 +50,16 @@ export const ScrollStickyContent = (props) => {
|
|||||||
>
|
>
|
||||||
見込
|
見込
|
||||||
</Text>
|
</Text>
|
||||||
<View>
|
<TouchableOpacity
|
||||||
|
onPress={() => {
|
||||||
|
if (!haveThrough) return;
|
||||||
|
LayoutAnimation.configureNext({
|
||||||
|
duration: 200,
|
||||||
|
update: { type: "easeInEaseOut", springDamping: 0.6 },
|
||||||
|
});
|
||||||
|
setShowThrew(!showThrew);
|
||||||
|
}}
|
||||||
|
>
|
||||||
<View style={{ flex: 1 }} />
|
<View style={{ flex: 1 }} />
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
@ -62,19 +71,11 @@ export const ScrollStickyContent = (props) => {
|
|||||||
textAlignVertical: "center",
|
textAlignVertical: "center",
|
||||||
opacity: haveThrough ? 1 : 0,
|
opacity: haveThrough ? 1 : 0,
|
||||||
}}
|
}}
|
||||||
onPress={() => {
|
|
||||||
if (!haveThrough) return;
|
|
||||||
LayoutAnimation.configureNext({
|
|
||||||
duration: 200,
|
|
||||||
update: { type: "easeInEaseOut", springDamping: 0.6 },
|
|
||||||
});
|
|
||||||
setShowThrew(!showThrew);
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
(通過{showThrew ? "▼" : "▶"})
|
(通過{showThrew ? "▼" : "▶"})
|
||||||
</Text>
|
</Text>
|
||||||
<View style={{ flex: 1 }} />
|
<View style={{ flex: 1 }} />
|
||||||
</View>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user