Skip to content

Commit

Permalink
refactor(android): move behavior class to root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Apr 6, 2024
1 parent cdb37ed commit d7f6f66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.lodev09.truesheet.core
package com.lodev09.truesheet

import android.view.MotionEvent
import android.view.ViewGroup
import android.widget.ScrollView
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.facebook.react.bridge.ReactContext
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.lodev09.truesheet.core.KeyboardManager
import com.lodev09.truesheet.core.Utils

data class SizeInfo(val index: Int, val value: Float)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import com.lodev09.truesheet.core.DismissEvent
import com.lodev09.truesheet.core.PresentEvent
import com.lodev09.truesheet.core.RootViewGroup
import com.lodev09.truesheet.core.SizeChangeEvent
import com.lodev09.truesheet.core.TrueSheetBehavior

class TrueSheetView(context: Context) :
ViewGroup(context),
Expand Down
1 change: 1 addition & 0 deletions android/src/main/java/com/lodev09/truesheet/core/Events.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.lodev09.truesheet.core
import com.facebook.react.bridge.Arguments
import com.facebook.react.bridge.WritableMap
import com.facebook.react.uimanager.events.Event
import com.lodev09.truesheet.SizeInfo

// onPresent
class PresentEvent(surfaceId: Int, viewId: Int, private val sizeInfo: SizeInfo) : Event<PresentEvent>(surfaceId, viewId) {
Expand Down

0 comments on commit d7f6f66

Please sign in to comment.