Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ios/events/KeyboardEventEmitterPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation
import UIKit

@MainActor
public func buildEventParams(_ height: Double, _ duration: Int, _ tag: NSNumber) -> [AnyHashable: Any] {
var data = [AnyHashable: Any]()
let input = FocusedInputHolder.shared.get()
Expand Down
1 change: 1 addition & 0 deletions ios/interactive/KeyboardAreaExtender.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Kiryl Ziusko on 02/11/2024.
//

@MainActor
class KeyboardAreaExtender: NSObject {
private var currentInputAccessoryView: InvisibleInputAccessoryView?

Expand Down
1 change: 1 addition & 0 deletions ios/interactive/KeyboardOffsetProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation

@MainActor
@objc(KeyboardOffsetProvider)
public class KeyboardOffsetProvider: NSObject {
@objc public static let shared = KeyboardOffsetProvider()
Expand Down
2 changes: 2 additions & 0 deletions ios/observers/FocusedInputObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import Foundation
import UIKit

@MainActor
let noFocusedInputEvent: [String: Any] = [
"target": -1,
"parentScrollViewTarget": -1,
Expand All @@ -22,6 +23,7 @@ let noFocusedInputEvent: [String: Any] = [
],
]

@MainActor
@objc(FocusedInputObserver)
public class FocusedInputObserver: NSObject {
// class members
Expand Down
1 change: 1 addition & 0 deletions ios/observers/movement/KeyboardEventsIgnorer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation

@MainActor
@objc(KeyboardEventsIgnorer)
public class KeyboardEventsIgnorer: NSObject {
@objc public static let shared = KeyboardEventsIgnorer()
Expand Down
1 change: 1 addition & 0 deletions ios/observers/movement/KeyboardViewLocator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Kiryl Ziusko on 25/07/2025.
//

@MainActor
final class KeyboardViewLocator {
static let shared = KeyboardViewLocator()
private var cachedKeyboardView: UIView?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ extension KeyboardMovementObserver {
let position = CGFloat(animation.valueAt(time: duration))
// handles a case when final frame has final destination (i. e. 0 or 291)
// but CASpringAnimation can never get to this final destination
let race: (CGFloat, CGFloat) -> CGFloat = animation.isIncreasing ? max : min
let race: (CGFloat, CGFloat) -> CGFloat = animation.isIncreasing ? { max($0, $1) } : { min($0, $1) }
keyboardPosition = race(position, keyboardPosition)
animation.lastValue = keyboardPosition
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import Foundation
import UIKit

@MainActor
@objc(KeyboardMovementObserver)
public class KeyboardMovementObserver: NSObject {
// class members
Expand Down
3 changes: 3 additions & 0 deletions ios/swizzling/UIResponderSwizzle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
import Foundation
import UIKit

@MainActor
private var pendingBecomeResponder: TextInput?
@MainActor
private var originalResignFirstResponder: IMP?
@MainActor
private var originalBecomeFirstResponder: IMP?

@objc
Expand Down
1 change: 1 addition & 0 deletions ios/traversal/FocusedInputHolder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation

@MainActor
class FocusedInputHolder {
static let shared = FocusedInputHolder()

Expand Down
3 changes: 2 additions & 1 deletion ios/views/KeyboardControllerViewManager.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@MainActor
@objc(KeyboardControllerViewManager)
class KeyboardControllerViewManager: RCTViewManager {
override class func requiresMainQueueSetup() -> Bool {
return false
}

override func view() -> (KeyboardControllerView) {
return KeyboardControllerView(frame: CGRect.zero, bridge: bridge)
return KeyboardControllerView(frame: .zero, bridge: bridge)
}

@objc(synchronizeFocusedInputLayout:)
Expand Down
Loading