@@ -302,11 +302,7 @@ index 4804624..90b7081 100644
302302 @property (nonatomic, assign) NSInteger mostRecentEventCount;
303303 @property (nonatomic, assign, readonly) NSInteger nativeEventCount;
304304diff --git a/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm b/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm
305- <<<<<<<< HEAD:patches/react-native/react-native+0.77.1+011+Add-onPaste-to-TextInput.patch
306- index 6deea73..4d82c72 100644
307- ========
308305index 6a2d4f8..b6e6060 100644
309- >>>>>>>> cad7e67ed9e5276f32ec9c1651bce8b635aa7e35:patches/react-native+0.79.2+011+Add-onPaste-to-TextInput.patch
310306--- a/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm
311307+++ b/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm
312308@@ -599,6 +599,26 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
@@ -449,11 +445,7 @@ index 0000000..bfb5819
449445+ public void onPaste(String type, String data);
450446+ }
451447diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java
452- <<<<<<<< HEAD:patches/react-native/react-native+0.77.1+011+Add-onPaste-to-TextInput.patch
453- index 56a1069..1f40bfd 100644
454- ========
455448index 42f2383..35bfa4d 100644
456- >>>>>>>> cad7e67ed9e5276f32ec9c1651bce8b635aa7e35:patches/react-native+0.79.2+011+Add-onPaste-to-TextInput.patch
457449--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java
458450+++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java
459451@@ -9,6 +9,10 @@ package com.facebook.react.views.textinput;
@@ -491,11 +483,7 @@ index 42f2383..35bfa4d 100644
491483 mTextAttributes = new TextAttributes();
492484
493485 applyTextAttributes();
494- <<<<<<<< HEAD:patches/react-native/react-native+0.77.1+011+Add-onPaste-to-TextInput.patch
495- @@ -332,8 +339,40 @@ public class ReactEditText extends AppCompatEditText {
496- ========
497486@@ -335,8 +342,38 @@ public class ReactEditText extends AppCompatEditText {
498- >>>>>>>> cad7e67ed9e5276f32ec9c1651bce8b635aa7e35:patches/react-native+0.79.2+011+Add-onPaste-to-TextInput.patch
499487 */
500488 @Override
501489 public boolean onTextContextMenuItem(int id) {
@@ -515,14 +503,12 @@ index 42f2383..35bfa4d 100644
515503+ if (itemUri != null) {
516504+ ContentResolver cr = getReactContext(this).getContentResolver();
517505+ type = cr.getType(itemUri);
518- + if (type != null && !type.equals(ClipDescription.MIMETYPE_TEXT_PLAIN)) {
519- + data = itemUri.toString();
520- + if (mPasteWatcher != null) {
521- + mPasteWatcher.onPaste(type, data);
522- + }
523- + // Prevents default behavior to avoid inserting raw binary data into the text field
524- + return true;
506+ + data = itemUri.toString();
507+ + if (mPasteWatcher != null) {
508+ + mPasteWatcher.onPaste(type, data);
525509+ }
510+ + // Prevents default behavior to avoid inserting raw binary data into the text field
511+ + return true;
526512+ }
527513+
528514+ if (clipData.getDescription().hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) {
@@ -537,11 +523,7 @@ index 42f2383..35bfa4d 100644
537523 }
538524 return super.onTextContextMenuItem(id);
539525 }
540- <<<<<<<< HEAD:patches/react-native/react-native+0.77.1+011+Add-onPaste-to-TextInput.patch
541- @@ -395,6 +434,10 @@ public class ReactEditText extends AppCompatEditText {
542- ========
543526@@ -417,6 +454,10 @@ public class ReactEditText extends AppCompatEditText {
544- >>>>>>>> cad7e67ed9e5276f32ec9c1651bce8b635aa7e35:patches/react-native+0.79.2+011+Add-onPaste-to-TextInput.patch
545527 mScrollWatcher = scrollWatcher;
546528 }
547529
@@ -711,4 +693,4 @@ index 33a8b3a..a3c4c0a 100644
711693+ void onPaste(const std::string& type, const std::string& data) const;
712694
713695 private:
714- void dispatchTextInputEvent(
696+ void dispatchTextInputEvent(
0 commit comments