Skip to content

Commit

Permalink
fix: footer position bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Jun 29, 2024
1 parent a1ee889 commit 6157f40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ class TrueSheetView(context: Context) :
eventDispatcher?.dispatchEvent(DismissEvent(surfaceId, id))
}

// Configure when showing and size changed
setOnSizeChangeListener(object : RootSheetView.OnSizeChangeListener {
override fun onSizeChange(width: Int, height: Int) {
maxScreenHeight = height
}
})

// Configure sheet behavior events
behavior.addBottomSheetCallback(
object : BottomSheetBehavior.BottomSheetCallback() {
Expand Down
1 change: 1 addition & 0 deletions example/src/sheets/ScrollViewSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const ScrollViewSheet = forwardRef((props: ScrollViewSheetProps, ref: Ref
return (
<TrueSheet
ref={ref}
sizes={['80%']}
scrollRef={scrollViewRef}
onDismiss={() => console.log('Sheet ScrollView dismissed!')}
onPresent={() => console.log(`Sheet ScrollView presented!`)}
Expand Down

0 comments on commit 6157f40

Please sign in to comment.