react-native 0.74.4 → 0.74.5

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.
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 74,
19
- patch: 4,
19
+ patch: 5,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -493,8 +493,6 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
493
493
  }
494
494
  }
495
495
 
496
- NSString *previousText = [backedTextInputView.attributedText.string copy] ?: @"";
497
-
498
496
  if (range.location + range.length > backedTextInputView.attributedText.string.length) {
499
497
  _predictedText = backedTextInputView.attributedText.string;
500
498
  } else if (text != nil) {
@@ -502,17 +500,6 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
502
500
  withString:text];
503
501
  }
504
502
 
505
- if (_onTextInput) {
506
- _onTextInput(@{
507
- // We copy the string here because if it's a mutable string it may get released before we stop using it on a
508
- // different thread, causing a crash.
509
- @"text" : [text copy],
510
- @"previousText" : previousText,
511
- @"range" : @{@"start" : @(range.location), @"end" : @(range.location + range.length)},
512
- @"eventCount" : @(_nativeEventCount),
513
- });
514
- }
515
-
516
503
  return text; // Accepting the change.
517
504
  }
518
505
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(74),
26
- RCTVersionPatch: @(4),
26
+ RCTVersionPatch: @(5),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -7362,15 +7362,6 @@ public class com/facebook/react/views/textinput/ReactTextChangedEvent : com/face
7362
7362
  public fun getEventName ()Ljava/lang/String;
7363
7363
  }
7364
7364
 
7365
- public class com/facebook/react/views/textinput/ReactTextInputEvent : com/facebook/react/uimanager/events/Event {
7366
- public static final field EVENT_NAME Ljava/lang/String;
7367
- public fun <init> (IILjava/lang/String;Ljava/lang/String;II)V
7368
- public fun <init> (ILjava/lang/String;Ljava/lang/String;II)V
7369
- public fun canCoalesce ()Z
7370
- protected fun getEventData ()Lcom/facebook/react/bridge/WritableMap;
7371
- public fun getEventName ()Ljava/lang/String;
7372
- }
7373
-
7374
7365
  public final class com/facebook/react/views/textinput/ReactTextInputLocalData {
7375
7366
  public fun <init> (Landroid/widget/EditText;)V
7376
7367
  public fun apply (Landroid/widget/EditText;)V
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.74.4
1
+ VERSION_NAME=0.74.5
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 74,
20
- "patch", 4,
20
+ "patch", 5,
21
21
  "prerelease", null);
22
22
  }
@@ -14,7 +14,7 @@ import com.facebook.react.uimanager.common.ViewUtil;
14
14
  import com.facebook.react.uimanager.events.Event;
15
15
 
16
16
  /** Event emitted by EditText native view when key pressed */
17
- class ReactTextInputKeyPressEvent extends Event<ReactTextInputEvent> {
17
+ /* package */ class ReactTextInputKeyPressEvent extends Event<ReactTextInputKeyPressEvent> {
18
18
 
19
19
  public static final String EVENT_NAME = "topKeyPress";
20
20
 
@@ -1122,17 +1122,12 @@ public class ReactTextInputManager extends BaseViewManager<ReactEditText, Layout
1122
1122
  }
1123
1123
 
1124
1124
  // The event that contains the event counter and updates it must be sent first.
1125
- // TODO: t7936714 merge these events
1126
1125
  mEventDispatcher.dispatchEvent(
1127
1126
  new ReactTextChangedEvent(
1128
1127
  mSurfaceId,
1129
1128
  mEditText.getId(),
1130
1129
  s.toString(),
1131
1130
  mEditText.incrementAndGetEventCounter()));
1132
-
1133
- mEventDispatcher.dispatchEvent(
1134
- new ReactTextInputEvent(
1135
- mSurfaceId, mEditText.getId(), newText, oldText, start, start + before));
1136
1131
  }
1137
1132
 
1138
1133
  @Override
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 74;
20
- int32_t Patch = 4;
20
+ int32_t Patch = 5;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.74.4",
3
+ "version": "0.74.5",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -110,13 +110,13 @@
110
110
  "@react-native-community/cli": "13.6.9",
111
111
  "@react-native-community/cli-platform-android": "13.6.9",
112
112
  "@react-native-community/cli-platform-ios": "13.6.9",
113
- "@react-native/assets-registry": "0.74.86",
114
- "@react-native/codegen": "0.74.86",
115
- "@react-native/community-cli-plugin": "0.74.86",
116
- "@react-native/gradle-plugin": "0.74.86",
117
- "@react-native/js-polyfills": "0.74.86",
118
- "@react-native/normalize-colors": "0.74.86",
119
- "@react-native/virtualized-lists": "0.74.86",
113
+ "@react-native/assets-registry": "0.74.87",
114
+ "@react-native/codegen": "0.74.87",
115
+ "@react-native/community-cli-plugin": "0.74.87",
116
+ "@react-native/gradle-plugin": "0.74.87",
117
+ "@react-native/js-polyfills": "0.74.87",
118
+ "@react-native/normalize-colors": "0.74.87",
119
+ "@react-native/virtualized-lists": "0.74.87",
120
120
  "abort-controller": "^3.0.0",
121
121
  "anser": "^1.4.9",
122
122
  "ansi-regex": "^5.0.0",
@@ -27,10 +27,8 @@ function get_architecture {
27
27
  function get_deployment_target {
28
28
  if [[ $1 == "xros" || $1 == "xrsimulator" ]]; then
29
29
  echo "$(get_visionos_deployment_target)"
30
- return
31
30
  else
32
31
  echo "$(get_ios_deployment_target)"
33
- return
34
32
  fi
35
33
  }
36
34
 
Binary file
Binary file
Binary file
@@ -11,16 +11,16 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.74.4"
14
+ "react-native": "0.74.5"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",
18
18
  "@babel/preset-env": "^7.20.0",
19
19
  "@babel/runtime": "^7.20.0",
20
- "@react-native/babel-preset": "0.74.86",
21
- "@react-native/eslint-config": "0.74.86",
22
- "@react-native/metro-config": "0.74.86",
23
- "@react-native/typescript-config": "0.74.86",
20
+ "@react-native/babel-preset": "0.74.87",
21
+ "@react-native/eslint-config": "0.74.87",
22
+ "@react-native/metro-config": "0.74.87",
23
+ "@react-native/typescript-config": "0.74.87",
24
24
  "@types/react": "^18.2.6",
25
25
  "@types/react-test-renderer": "^18.0.0",
26
26
  "babel-jest": "^29.6.3",
@@ -1,70 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- package com.facebook.react.views.textinput;
9
-
10
- import androidx.annotation.Nullable;
11
- import com.facebook.react.bridge.Arguments;
12
- import com.facebook.react.bridge.WritableMap;
13
- import com.facebook.react.uimanager.common.ViewUtil;
14
- import com.facebook.react.uimanager.events.Event;
15
-
16
- /**
17
- * Event emitted by EditText native view when text changes. VisibleForTesting from {@link
18
- * TextInputEventsTestCase}.
19
- */
20
- public class ReactTextInputEvent extends Event<ReactTextInputEvent> {
21
-
22
- public static final String EVENT_NAME = "topTextInput";
23
-
24
- private String mText;
25
- private String mPreviousText;
26
- private int mRangeStart;
27
- private int mRangeEnd;
28
-
29
- @Deprecated
30
- public ReactTextInputEvent(
31
- int viewId, String text, String previousText, int rangeStart, int rangeEnd) {
32
- this(ViewUtil.NO_SURFACE_ID, viewId, text, previousText, rangeStart, rangeEnd);
33
- }
34
-
35
- public ReactTextInputEvent(
36
- int surfaceId, int viewId, String text, String previousText, int rangeStart, int rangeEnd) {
37
- super(surfaceId, viewId);
38
- mText = text;
39
- mPreviousText = previousText;
40
- mRangeStart = rangeStart;
41
- mRangeEnd = rangeEnd;
42
- }
43
-
44
- @Override
45
- public String getEventName() {
46
- return EVENT_NAME;
47
- }
48
-
49
- @Override
50
- public boolean canCoalesce() {
51
- // We don't want to miss any textinput event, as event data is incremental.
52
- return false;
53
- }
54
-
55
- @Nullable
56
- @Override
57
- protected WritableMap getEventData() {
58
- WritableMap eventData = Arguments.createMap();
59
- WritableMap range = Arguments.createMap();
60
- range.putDouble("start", mRangeStart);
61
- range.putDouble("end", mRangeEnd);
62
-
63
- eventData.putString("text", mText);
64
- eventData.putString("previousText", mPreviousText);
65
- eventData.putMap("range", range);
66
-
67
- eventData.putInt("target", getViewTag());
68
- return eventData;
69
- }
70
- }