@@ -22,17 +22,17 @@ class TrueSheetViewManager : ViewGroupManager<TrueSheetView>() {
22
22
view.onHostDestroy()
23
23
}
24
24
25
- override fun getExportedCustomDirectEventTypeConstants (): MutableMap <String , Any >? =
26
- MapBuilder .builder< String , Any >()
27
- .put( TrueSheetEvent .MOUNT , MapBuilder .of(" registrationName" , " onMount" ))
28
- .put( TrueSheetEvent .PRESENT , MapBuilder .of(" registrationName" , " onPresent" ))
29
- .put( TrueSheetEvent .DISMISS , MapBuilder .of(" registrationName" , " onDismiss" ))
30
- .put( TrueSheetEvent .SIZE_CHANGE , MapBuilder .of(" registrationName" , " onSizeChange" ))
31
- .put( TrueSheetEvent .DRAG_BEGIN , MapBuilder .of(" registrationName" , " onDragBegin" ))
32
- .put( TrueSheetEvent .DRAG_CHANGE , MapBuilder .of(" registrationName" , " onDragChange" ))
33
- .put( TrueSheetEvent .DRAG_END , MapBuilder .of(" registrationName" , " onDragEnd" ))
34
- .put( TrueSheetEvent .CONTAINER_SIZE_CHANGE , MapBuilder .of(" registrationName" , " onContainerSizeChange" ) )
35
- .build( )
25
+ override fun getExportedCustomDirectEventTypeConstants (): MutableMap <String , Any > =
26
+ mutableMapOf (
27
+ TrueSheetEvent .MOUNT to MapBuilder .of(" registrationName" , " onMount" ),
28
+ TrueSheetEvent .PRESENT to MapBuilder .of(" registrationName" , " onPresent" ),
29
+ TrueSheetEvent .DISMISS to MapBuilder .of(" registrationName" , " onDismiss" ),
30
+ TrueSheetEvent .SIZE_CHANGE to MapBuilder .of(" registrationName" , " onSizeChange" ),
31
+ TrueSheetEvent .DRAG_BEGIN to MapBuilder .of(" registrationName" , " onDragBegin" ),
32
+ TrueSheetEvent .DRAG_CHANGE to MapBuilder .of(" registrationName" , " onDragChange" ),
33
+ TrueSheetEvent .DRAG_END to MapBuilder .of(" registrationName" , " onDragEnd" ),
34
+ TrueSheetEvent .CONTAINER_SIZE_CHANGE to MapBuilder .of(" registrationName" , " onContainerSizeChange" )
35
+ )
36
36
37
37
@ReactProp(name = " edgeToEdge" )
38
38
fun setEdgeToEdge (view : TrueSheetView , edgeToEdge : Boolean ) {
0 commit comments