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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +0 -13
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/api/ReactAndroid.api +0 -9
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputKeyPressEvent.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +0 -5
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +8 -8
- package/sdks/hermes-engine/utils/build-ios-framework.sh +0 -2
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/package.json +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEvent.java +0 -70
|
@@ -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
|
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -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
|
|
@@ -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<
|
|
17
|
+
/* package */ class ReactTextInputKeyPressEvent extends Event<ReactTextInputKeyPressEvent> {
|
|
18
18
|
|
|
19
19
|
public static final String EVENT_NAME = "topKeyPress";
|
|
20
20
|
|
package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java
CHANGED
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.74.
|
|
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.
|
|
114
|
-
"@react-native/codegen": "0.74.
|
|
115
|
-
"@react-native/community-cli-plugin": "0.74.
|
|
116
|
-
"@react-native/gradle-plugin": "0.74.
|
|
117
|
-
"@react-native/js-polyfills": "0.74.
|
|
118
|
-
"@react-native/normalize-colors": "0.74.
|
|
119
|
-
"@react-native/virtualized-lists": "0.74.
|
|
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",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/template/package.json
CHANGED
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"react": "18.2.0",
|
|
14
|
-
"react-native": "0.74.
|
|
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.
|
|
21
|
-
"@react-native/eslint-config": "0.74.
|
|
22
|
-
"@react-native/metro-config": "0.74.
|
|
23
|
-
"@react-native/typescript-config": "0.74.
|
|
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",
|
package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputEvent.java
DELETED
|
@@ -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
|
-
}
|