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 +1 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/ios/ExpoPasteInputView.swift +8 -3
- package/package.json +1 -1
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
|
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
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
|
-
|
|
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