現在地ジャンプ機能を実装
This commit is contained in:
@@ -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 && (
|
||||
|
Reference in New Issue
Block a user