Skip to content

Commit 6076b55

Browse files
Use ViewManagerConfig on UIManager
Fixed #48
1 parent 7a5a81e commit 6076b55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/BottomSheetBehavior.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ class BottomSheetBehavior extends Component {
4242
setRequestLayout() {
4343
UIManager.dispatchViewManagerCommand(
4444
findNodeHandle(this),
45-
UIManager.BSBBottomSheetBehaviorAndroid.Commands.setRequestLayout,
45+
UIManager.getViewManagerConfig('BSBBottomSheetBehaviorAndroid').Commands.setRequestLayout,
4646
[],
4747
)
4848
}
4949

5050
setBottomSheetState(state) {
5151
UIManager.dispatchViewManagerCommand(
5252
findNodeHandle(this),
53-
UIManager.BSBBottomSheetBehaviorAndroid.Commands.setBottomSheetState,
53+
UIManager.getViewManagerConfig('BSBBottomSheetBehaviorAndroid').Commands.setBottomSheetState,
5454
[state],
5555
)
5656
}
@@ -59,7 +59,7 @@ class BottomSheetBehavior extends Component {
5959
const view = findNodeHandle(nestedScroll)
6060
UIManager.dispatchViewManagerCommand(
6161
findNodeHandle(this),
62-
UIManager.BSBBottomSheetBehaviorAndroid.Commands.attachNestedScrollChild,
62+
UIManager.getViewManagerConfig('BSBBottomSheetBehaviorAndroid').Commands.attachNestedScrollChild,
6363
[view],
6464
)
6565
}

0 commit comments

Comments
 (0)