現在地ジャンプ機能を実装

This commit is contained in:
harukin-expo-dev-env
2024-10-23 07:00:33 +00:00
parent 54f3974527
commit bd1ea0857c
2 changed files with 29 additions and 4 deletions

View File

@@ -13,14 +13,13 @@ export const DynamicHeaderScrollView = (props) => {
topStickyContent,
styles,
from,
ScrollViewRef,
} = props;
const [headerSize, setHeaderSize] = useState("default");
useLayoutEffect(() => {
AS.getItem("headerSize")
.then((res) => {
if (res) {
setHeaderSize(res);
}
if (res) setHeaderSize(res);
})
.catch((e) => {
AS.setItem("headerSize", "default");
@@ -160,6 +159,7 @@ export const DynamicHeaderScrollView = (props) => {
stickyHeaderIndices={[1]}
scrollEventThrottle={16}
onScroll={onScroll}
ref={ScrollViewRef}
>
<View style={{ height: Scroll_Distance, flexDirection: "column" }} />
{topStickyContent && (