react-native-tvos 0.77.3-0 → 0.77.3-1
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 +2 -2
- package/React/Base/RCTVersion.m +2 -2
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +2 -6
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.kt +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +18 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
* @flow strict
|
|
8
|
-
* @generated by scripts/releases/set-
|
|
8
|
+
* @generated by scripts/releases/set-version.js
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
const version: $ReadOnly<{
|
|
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
|
|
|
17
17
|
major: 0,
|
|
18
18
|
minor: 77,
|
|
19
19
|
patch: 3,
|
|
20
|
-
prerelease: '
|
|
20
|
+
prerelease: '1',
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
module.exports = {version};
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated by scripts/releases/set-
|
|
7
|
+
* @generated by scripts/releases/set-version.js
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
#import "RCTVersion.h"
|
|
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
24
24
|
RCTVersionMajor: @(0),
|
|
25
25
|
RCTVersionMinor: @(77),
|
|
26
26
|
RCTVersionPatch: @(3),
|
|
27
|
-
RCTVersionPrerelease: @"
|
|
27
|
+
RCTVersionPrerelease: @"1",
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
return __rnVersion;
|
|
@@ -143,16 +143,12 @@ static ModalHostViewEventEmitter::OnOrientationChange onOrientationChangeStruct(
|
|
|
143
143
|
|
|
144
144
|
#if TARGET_OS_TV
|
|
145
145
|
- (void)menuButtonPressed {
|
|
146
|
-
_isPresented = NO;
|
|
147
|
-
// To animate dismissal of view controller, snapshot of
|
|
148
|
-
// view hierarchy needs to be added to the UIViewController.
|
|
149
146
|
UIView *snapshot = [self.viewController.view snapshotViewAfterScreenUpdates:NO];
|
|
150
|
-
|
|
151
|
-
[self.viewController.view addSubview:snapshot];
|
|
152
|
-
}
|
|
147
|
+
[self.viewController.view addSubview:snapshot];
|
|
153
148
|
[self dismissViewController:self.viewController
|
|
154
149
|
animated:_shouldAnimatePresentation
|
|
155
150
|
completion:^{
|
|
151
|
+
[snapshot removeFromSuperview];
|
|
156
152
|
auto eventEmitter = [self modalEventEmitter];
|
|
157
153
|
if (eventEmitter) {
|
|
158
154
|
eventEmitter->onDismiss(ModalHostViewEventEmitter::OnDismiss{});
|
|
@@ -223,7 +223,7 @@ UITextContentType RCTUITextContentTypeFromString(const std::string &contentType)
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000 /* __IPHONE_17_0 */
|
|
226
|
-
if (@available(iOS 17.0,
|
|
226
|
+
if (@available(iOS 17.0, *)) {
|
|
227
227
|
[mutableContentTypeMap addEntriesFromDictionary:@{
|
|
228
228
|
@"creditCardExpiration" : UITextContentTypeCreditCardExpiration,
|
|
229
229
|
@"creditCardExpirationMonth" : UITextContentTypeCreditCardExpirationMonth,
|
|
@@ -20,7 +20,7 @@ def sonatypeUsername = findProperty('SONATYPE_USERNAME')
|
|
|
20
20
|
def sonatypePassword = findProperty('SONATYPE_PASSWORD')
|
|
21
21
|
|
|
22
22
|
def reactAndroidProjectDir = project(':packages:react-native:ReactAndroid').projectDir
|
|
23
|
-
def mavenTempLocalUrl = 'file:///
|
|
23
|
+
def mavenTempLocalUrl = 'file:///home/expo/workingdir/build/maven-local'
|
|
24
24
|
// Rewritten when copying this to ReactAndroid/publish.gradle
|
|
25
25
|
|
|
26
26
|
publishing {
|
|
@@ -105,4 +105,4 @@ publishing {
|
|
|
105
105
|
} else {
|
|
106
106
|
logger.info('Signing disabled as the PGP key was not found')
|
|
107
107
|
}
|
|
108
|
-
}
|
|
108
|
+
}
|
package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated by scripts/releases/set-
|
|
7
|
+
* @generated by scripts/releases/set-version.js
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
package com.facebook.react.modules.systeminfo;
|
|
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
|
|
|
18
18
|
"major", 0,
|
|
19
19
|
"minor", 77,
|
|
20
20
|
"patch", 3,
|
|
21
|
-
"prerelease",
|
|
21
|
+
"prerelease", null);
|
|
22
22
|
}
|
|
@@ -121,7 +121,6 @@ public class ReactModalHostView(context: ThemedReactContext) :
|
|
|
121
121
|
|
|
122
122
|
init {
|
|
123
123
|
context.addLifecycleEventListener(this)
|
|
124
|
-
initStatusBarHeight(context)
|
|
125
124
|
dialogRootViewGroup = DialogRootViewGroup(context)
|
|
126
125
|
}
|
|
127
126
|
|
|
@@ -422,30 +421,6 @@ public class ReactModalHostView(context: ThemedReactContext) :
|
|
|
422
421
|
public fun onRequestClose(dialog: DialogInterface?)
|
|
423
422
|
}
|
|
424
423
|
|
|
425
|
-
private companion object {
|
|
426
|
-
private const val TAG = "ReactModalHost"
|
|
427
|
-
|
|
428
|
-
// We store the status bar height to be able to properly position
|
|
429
|
-
// the modal on the first render.
|
|
430
|
-
private var statusBarHeight = 0
|
|
431
|
-
|
|
432
|
-
private fun initStatusBarHeight(reactContext: ReactContext) {
|
|
433
|
-
statusBarHeight = getStatusBarHeightPx(reactContext.currentActivity)
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
@JvmStatic
|
|
437
|
-
@DoNotStrip
|
|
438
|
-
private fun getScreenDisplayMetricsWithoutInsets(): Long {
|
|
439
|
-
val displayMetrics = DisplayMetricsHolder.getScreenDisplayMetrics()
|
|
440
|
-
return encodeFloatsToLong(
|
|
441
|
-
displayMetrics.widthPixels.toFloat().pxToDp(),
|
|
442
|
-
(displayMetrics.heightPixels - statusBarHeight).toFloat().pxToDp())
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
private fun encodeFloatsToLong(width: Float, height: Float): Long =
|
|
446
|
-
(width.toRawBits().toLong()) shl 32 or (height.toRawBits().toLong())
|
|
447
|
-
}
|
|
448
|
-
|
|
449
424
|
/**
|
|
450
425
|
* DialogRootViewGroup is the ViewGroup which contains all the children of a Modal. It gets all
|
|
451
426
|
* child information forwarded from [ReactModalHostView] and uses that to create children. It is
|
|
@@ -683,6 +683,23 @@ public class ReactViewGroup extends ViewGroup
|
|
|
683
683
|
super.onViewAdded(child);
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
@Override
|
|
689
|
+
public void removeView(@Nullable View view) {
|
|
690
|
+
if (view != null) {
|
|
691
|
+
recoverFocus(view);
|
|
692
|
+
}
|
|
693
|
+
super.removeView(view);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
@Override
|
|
697
|
+
public void removeViewAt(int index) {
|
|
698
|
+
recoverFocus(getChildAt(index));
|
|
699
|
+
super.removeViewAt(index);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
|
|
686
703
|
@Override
|
|
687
704
|
public void onViewRemoved(View child) {
|
|
688
705
|
UiThreadUtil.assertOnUiThread();
|
|
@@ -817,7 +834,7 @@ public class ReactViewGroup extends ViewGroup
|
|
|
817
834
|
|
|
818
835
|
/*package*/ void removeViewWithSubviewClippingEnabled(View view) {
|
|
819
836
|
UiThreadUtil.assertOnUiThread();
|
|
820
|
-
|
|
837
|
+
recoverFocus(view);
|
|
821
838
|
Assertions.assertCondition(mRemoveClippedSubviews);
|
|
822
839
|
Assertions.assertNotNull(mClippingRect);
|
|
823
840
|
View[] childArray = Assertions.assertNotNull(mAllChildren);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated by scripts/releases/set-
|
|
7
|
+
* @generated by scripts/releases/set-version.js
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
#pragma once
|
|
@@ -18,7 +18,7 @@ constexpr struct {
|
|
|
18
18
|
int32_t Major = 0;
|
|
19
19
|
int32_t Minor = 77;
|
|
20
20
|
int32_t Patch = 3;
|
|
21
|
-
std::string_view Prerelease = "
|
|
21
|
+
std::string_view Prerelease = "1";
|
|
22
22
|
} ReactNativeVersion;
|
|
23
23
|
|
|
24
24
|
} // namespace facebook::react
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.77.3-
|
|
3
|
+
"version": "0.77.3-1",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@react-native/gradle-plugin": "0.77.3",
|
|
119
119
|
"@react-native/js-polyfills": "0.77.3",
|
|
120
120
|
"@react-native/normalize-colors": "0.77.3",
|
|
121
|
-
"@react-native-tvos/virtualized-lists": "0.77.3-
|
|
121
|
+
"@react-native-tvos/virtualized-lists": "0.77.3-1",
|
|
122
122
|
"abort-controller": "^3.0.0",
|
|
123
123
|
"anser": "^1.4.9",
|
|
124
124
|
"ansi-regex": "^5.0.0",
|