Merge commit '5806e2a259e03182d082fe454f4a1932ad9c5e53' into develop

This commit is contained in:
harukin-expo-dev-env 2024-03-13 13:11:29 +00:00
commit b05521d0e8
3 changed files with 36 additions and 11 deletions

View File

@ -206,7 +206,7 @@ export const EachTrainInfoCore = ({
}, },
navigate, navigate,
originalStationList, originalStationList,
from: "AllTrainDiagramView", from: "NearTrainDiagramView",
}; };
if (setTrainInfo) { if (setTrainInfo) {
setTrainInfo(payload.data); setTrainInfo(payload.data);
@ -287,10 +287,18 @@ export const EachTrainInfoCore = ({
maxHeight: isLandscape ? height - 94 : (height / 100) * 70, maxHeight: isLandscape ? height - 94 : (height / 100) * 70,
}, },
}} }}
Max_Header_Height={from == "AllTrainDiagramView" ? 0 : 200} Max_Header_Height={
Min_Header_Height={from == "AllTrainDiagramView" ? 0 : 80} from == "AllTrainDiagramView" || from == "NearTrainDiagramView"
? 0
: 200
}
Min_Header_Height={
from == "AllTrainDiagramView" || from == "NearTrainDiagramView"
? 0
: 80
}
shortHeader={ shortHeader={
from == "AllTrainDiagramView" ? ( from == "AllTrainDiagramView" || from == "NearTrainDiagramView" ? (
<></> <></>
) : ( ) : (
<ShortHeader <ShortHeader
@ -302,7 +310,7 @@ export const EachTrainInfoCore = ({
) )
} }
longHeader={ longHeader={
from == "AllTrainDiagramView" ? ( from == "AllTrainDiagramView" || from == "NearTrainDiagramView" ? (
<></> <></>
) : ( ) : (
<LongHeader <LongHeader

View File

@ -47,7 +47,23 @@ export const DynamicHeaderScrollView = (props) => {
backgroundColor: "#0099CC", backgroundColor: "#0099CC",
margin: 0, margin: 0,
top: 0, top: 0,
opacity: 1, opacity: 0,
},
};
const StickyStyle = {
on: {
position: "absolute",
width: "100%",
flex: 1,
top: Max_Header_Height,
zIndex: 1,
},
off: {
position: "absolute",
width: "100%",
flex: 1,
top: Min_Header_Height,
zIndex: 1,
}, },
}; };
@ -70,6 +86,9 @@ export const DynamicHeaderScrollView = (props) => {
> >
{longHeader} {longHeader}
</Animated.View> </Animated.View>
<Animated.View style={headerVisible ? StickyStyle.off : StickyStyle.on}>
{topStickyContent}
</Animated.View>
</View> </View>
<ScrollView <ScrollView
{...scrollViewProps} {...scrollViewProps}
@ -97,13 +116,11 @@ export const DynamicHeaderScrollView = (props) => {
{topStickyContent && ( {topStickyContent && (
<View <View
style={{ style={{
paddingTop: Min_Header_Height, paddingTop: Min_Header_Height + 40,
flexDirection: "column", flexDirection: "column",
}} }}
index={1} index={1}
> />
{topStickyContent}
</View>
)} )}
{children} {children}
</ScrollView> </ScrollView>

View File

@ -174,7 +174,7 @@ export default function Setting(props) {
textAlignVertical: "center", textAlignVertical: "center",
}} }}
> >
内部バージョン: 5.0.2.1 内部バージョン: 5.0.2.2
</Text> </Text>
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
</View> </View>