react-native-true-sheet/example
Jovanni Lo 7a35fa6bfb
refactor(android): use BottomSheetDialogFragment instead of BottomSheetDialog (#342)
* fix(android): restore original code

* refactor(android): use BottomSheetDialogFragment instead of BottomSheetDialog

- Create TrueSheetDialogFragment in core/ for better lifecycle management
- Refactor TrueSheetViewController to use the new fragment
- Add TrueSheetDialogFragmentDelegate for fragment callbacks
- Maintain all existing functionality (detents, animations, keyboard, stacking)

* fix(android): fix dialog fragment presentation issues

- Move setupSheetDetents and setupDimmedBackground to onDialogShow
- Clear FLAG_DIM_BEHIND in fragment's onCreateDialog
- Fix footer positioning with post and isPresented check
- Rename setDraggable to updateDraggable to fix JVM signature clash

* fix(android): animate sheet on content size change

- Add animate parameter to configureDetents
- Use setPeekHeight with animate flag when sheet is presented
- Remove unnecessary footerView.post wrapper

* fix(android): position footer during keyboard transitions

* fix(android): restore translationY animation for present

- Restore translationY logic in animator for child sheets
- Remove duplicate setStateForDetentIndex call in onDialogShow
- Position sheet off-screen before animation starts
- Clean up debug logging

* fix(android): fix dismissible behavior and clean up onSlide

- Re-apply isHideable after dialog show to fix dismissible
- Move isAnimating check to early return in onSlide
- Clean up debug logging
2025-12-19 08:18:56 +08:00
..
bare feat(android): improve transition animations and refactor detent calculations (#337) 2025-12-18 00:50:50 +08:00
expo fix(expo): add demo api key to map view 2025-12-16 17:35:30 +08:00
shared refactor(android): use BottomSheetDialogFragment instead of BottomSheetDialog (#342) 2025-12-19 08:18:56 +08:00
README.md docs: update docs 2025-12-14 09:33:48 +08:00

TrueSheet Examples

This directory contains example apps demonstrating @lodev09/react-native-true-sheet.

Structure

example/
├── bare/    # Bare React Native app (react-native-community/cli)
├── expo/    # Expo Router app
└── shared/  # Shared components and utilities

Setup

From the repository root:

yarn install

Running Examples

Bare React Native

cd example/bare

# iOS
yarn ios

# Android
yarn android

Expo

cd example/expo

# iOS
yarn ios

# Android
yarn android