expo-paste-input 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,6 +21,7 @@ See the original demo on [Twitter](https://x.com/iamarunabh/status/1997738168247
21
21
  - No custom UI, no opinionated styles
22
22
  - Returns local file URIs for pasted media
23
23
  - Safe to import on Web (no crash, no-op)
24
+ - Supports Expo SwiftUI `TextField` as well.
24
25
 
25
26
  ---
26
27
 
File without changes
@@ -0,0 +1,2 @@
1
+ #Mon Feb 09 17:29:40 IST 2026
2
+ gradle.version=8.9
File without changes
@@ -77,6 +77,13 @@ class ExpoPasteInputView: ExpoView {
77
77
  super.didAddSubview(subview)
78
78
  startMonitoring()
79
79
  }
80
+
81
+ override func layoutSubviews() {
82
+ super.layoutSubviews()
83
+ if !isMonitoring {
84
+ startMonitoring()
85
+ }
86
+ }
80
87
 
81
88
  private func startMonitoring() {
82
89
  guard !isMonitoring else { return }
@@ -302,9 +309,7 @@ class ExpoPasteInputView: ExpoView {
302
309
  }
303
310
 
304
311
  private func findTextInputInView(_ view: UIView) -> UIView? {
305
- let className = String(describing: type(of: view))
306
- if className.contains("RCTUITextField") || className.contains("RCTUITextView") ||
307
- className.contains("UITextField") || className.contains("UITextView") {
312
+ if view is TextInputEnhanceable {
308
313
  return view
309
314
  }
310
315
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-paste-input",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A wrapper around React Native TextInput to paste images and GIFs from the clipboard (iOS, Android, Web)",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",