[iOS] A scroll view above the main list stops `minimizeBehavior="onScrollDown"`.

オープン
#617 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@oleksandrzavarzin-callstack がすでに取り組んでいます。

2026年11月3日 から。

  • #618 @oleksandrzavarzin-callstack による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
ios, react-native, typescript
領域
mobile

調査の方向性

The bug is in how the native iOS tab bar picks its minimize-on-scroll scroll view when a horizontal ScrollView sits above a vertical one, so start with the minimizeBehavior prop on Tab.Navigator and the native iOS scroll-view handling it reaches. Reproduce with the sample using SHOW_HORIZONTAL_LIST true and false, and check that a finger scroll minimizes the bar only when the horizontal list is removed. Pull request #618 is already open against this issue, so review it before starting any separate fix.

索引モデルが issue の本文から書いたものです。

説明

bug
Before submitting a new issue
  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.
Bug summary

Some tabs have a second scroll view before the main list. On iOS 26 and later, scrolling down in such a tab does not minimize the tab bar. An example is a short horizontal list of chips above a vertical list. The main list scrolls, but the tab bar stays full size.

UIKit picks the scroll view that drives minimizing from the first subview of each view, repeated down the tree. In this layout, the first scroll view on that path is the horizontal list, so vertical scrolling of the main list has no effect.

Library version

1.5.0

Environment info
System:
  OS: macOS 27.0.1
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 24.20.0
  Yarn: 1.22.22
  npm: 11.19.0
  Watchman: 2026.07.27.00
Managers:
  CocoaPods: 1.17.0
SDKs:
  iOS SDK:
    Platforms: DriverKit 27.0, iOS 27.1, macOS 27.0, tvOS 27.0, visionOS 27.0, watchOS 27.0
IDEs:
  Xcode: 27.1/27A9275
npmPackages:
  expo: 58.0.16
  react: 19.3.0
  react-native: 0.88.0
  react-native-bottom-tabs: 1.5.0
  "@bottom-tabs/react-navigation": 1.5.0
  "@react-navigation/native": 7.5.1
  "@react-navigation/native-stack": 7.21.0
  react-native-screens: 4.30.0
  react-native-safe-area-context: 5.10.1
  "@shopify/flash-list": 2.3.2
iOS:
  hermesEnabled: true
  newArchEnabled: true
Device:
  iPhone 17 Pro simulator, iOS 26.5
Steps to reproduce
  1. Create a tab navigator with minimizeBehavior="onScrollDown".
  2. In the first tab, render a horizontal ScrollView and, below it, a vertical ScrollView, FlatList, or FlashList.
  3. Scroll down in the vertical list with a finger. A scroll from code (scrollTo) never minimizes the bar.
function HomeScreen() {
  return (
    <View style={{ flex: 1 }}>
      <ScrollView horizontal style={{ flexGrow: 0 }}>
        {/* chips */}
      </ScrollView>
      <ScrollView contentInsetAdjustmentBehavior="automatic">
        {/* long content */}
      </ScrollView>
    </View>
  );
}

If you remove the horizontal list, the tab bar minimizes.

Without the horizontal list: the tab bar minimizes With the horizontal list: the tab bar stays full size
https://github.com/user-attachments/assets/c7af0c77-bf7d-45c2-9a3f-5c340e7ad507 https://github.com/user-attachments/assets/2f84e03b-3f2c-40d8-a046-37736c012055
Reproducible sample code
import { NavigationContainer } from '@react-navigation/native';
import { createNativeBottomTabNavigator } from '@bottom-tabs/react-navigation';
import { ScrollView, Text, View } from 'react-native';

const SHOW_HORIZONTAL_LIST = true;

const Tab = createNativeBottomTabNavigator();

function HomeScreen() {
  return (
    <View style={{ flex: 1 }}>
      {SHOW_HORIZONTAL_LIST && (
        <ScrollView horizontal style={{ flexGrow: 0, marginTop: 60 }}>
          {Array.from({ length: 12 }, (_, i) => (
            <Text key={i} style={{ padding: 16 }}>
              Chip {i + 1}
            </Text>
          ))}
        </ScrollView>
      )}
      <ScrollView contentInsetAdjustmentBehavior="automatic">
        {Array.from({ length: 50 }, (_, i) => (
          <Text key={i} style={{ padding: 20 }}>
            Item {i + 1}
          </Text>
        ))}
      </ScrollView>
    </View>
  );
}

function ProfileScreen() {
  return <View style={{ flex: 1 }} />;
}

export default function App() {
  return (
    <NavigationContainer>
      <Tab.Navigator minimizeBehavior="onScrollDown">
        <Tab.Screen
          name="Home"
          component={HomeScreen}
          options={{ tabBarIcon: () => ({ sfSymbol: 'house.fill' }) }}
        />
        <Tab.Screen
          name="Profile"
          component={ProfileScreen}
          options={{ tabBarIcon: () => ({ sfSymbol: 'person.fill' }) }}
        />
      </Tab.Navigator>
    </NavigationContainer>
  );
}
主要言語
TypeScript
スター
1.5k
フォーク
112
平均マージ
2日 3時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstack/react-native-bottom-tabs のほかの issue

callstack/react-native-bottom-tabs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。