[Feature request] Native footer slot pinned to the sheet's visible bottom edge
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- react-native
- Área
- mobile
Línea de trabajo
Start by tracing the existing surface slot and content-region inset implementation, then inspect the native positioning path that keeps the sheet aligned during dragging, snapping, resizing, and keyboard avoidance. Define how a footer prop would integrate with those paths and with detached sheets. Done means the footer remains pinned without Reanimated and content can scroll above it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What
A footer prop on BottomSheet / ModalBottomSheet — a sibling to the existing surface slot — that renders a React-composed view pinned to the sheet's visible bottom edge natively, staying frame-perfect while the sheet is dragged, snapped, or resized.
<BottomSheet
index={index}
onIndexChange={setIndex}
surface={/* ... */}
footer={
<View style={styles.footer}>
<Button title="Confirm" onPress={onConfirm} />
</View>
}
>
{/* scrollable content */}
</BottomSheet>
Ideally the content region would also account for the footer's height (similar to how the content-region inset works today), so scrollables inside the sheet can scroll their last items above the footer rather than behind it.
Why
A fixed action area (confirm/cancel buttons, a total-price bar, a "add to cart" CTA) is one of the most common bottom-sheet compositions, and there is currently no first-class way to build one:
- Absolutely positioning a footer inside the sheet content doesn't work during drags: the sheet container is translated natively, so a content-anchored footer moves off-screen with it as the sheet collapses, and content-size updates go through the shadow tree asynchronously.
- The documented position-tracking approach (onPositionChange + wrapNativeView={Animated.createAnimatedComponent} + a useEvent worklet) can counter-translate a footer on the UI thread, and it works well — but it reintroduces a Reanimated dependency and per-frame handler work for what is arguably core sheet composition. Not requiring Reanimated is one of this library's stated advantages over @gorhom/bottom-sheet.
- Rendering the footer outside the sheet as a screen-bottom sibling loses modal layering (it sits below the scrim/portal), keyboard avoidance, and show/hide coordination with the sheet.
For comparison, @gorhom/bottom-sheet ships BottomSheetFooter for exactly this reason, and it's one of its most-used building blocks. Since this library already moves positioning into native code and already has the surface slot precedent, a natively pinned footer seems like a natural fit for the architecture: the native host knows the visible bottom edge every frame (including during springs and keyboard avoidance), so it can hold the footer there with no JS involvement.
Things that would need defining (happy to discuss):
- Interaction with keyboard avoidance — presumably the footer rides above the keyboard with the sheet.
- Interaction with the detached / floating-card sheets proposed in #58, where the visible bottom edge is lifted by bottomInset.
- Whether the footer's height feeds 'content' detent sizing.
If this sounds reasonable, I'd be glad to help test it, or take a shot at a PR if maintainers can offer some pointers on the preferred native approach.
- Lenguaje dominante
- Kotlin
- Estrellas
- 536
- Forks
- 24
- Merge medio
- 12 h 10 min
- PR fusionados (30 d)
- 22
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de software-mansion/react-native-bottom-sheet
-
Android: NoSuchElementException in ScrollIndicators.refit when a scroll view is garbage collectedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
software-mansion/react-native-bottom-sheet#140 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
software-mansion/react-native-bottom-sheet#137 ·
Los mantenedores suelen responder en 1 día
-
Feature request: opt-in native keyboard avoidancePosiblemente ocupada @Asad-Butt la tomó hace 5 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
software-mansion/react-native-bottom-sheet#134 · 1 comentario · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
software-mansion/react-native-bottom-sheet#132 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
software-mansion/react-native-bottom-sheet#74 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de software-mansion/react-native-bottom-sheet
Issues similares
-
Remove Collect againAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
thisisartman/Meguri#211 ·
Los mantenedores suelen responder en 1 día
-
follow-up
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
area:android fleet
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
emm3000/myGame#2175 · 1 comentario ·
Los mantenedores suelen responder en 1 día