Skip to content

Commit 159fcf6

Browse files
tomekzawclaude
andcommitted
Merge branch 'main' into fix-get-constants-exception
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 parents abae08e + 3908ef3 commit 159fcf6

84 files changed

Lines changed: 715 additions & 484 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.flowconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ untyped-import
9797
untyped-type-import
9898

9999
[version]
100-
^0.337.0
100+
^0.338.0

‎flow-typed/environment/node.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ type buffer$ToJSONRet = {
5656
...
5757
};
5858

59+
// $FlowFixMe[incompatible-type]
5960
declare class Buffer extends Uint8Array {
6061
constructor(
6162
value: Array<number> | number | string | Buffer | ArrayBuffer,
@@ -71,6 +72,7 @@ declare class Buffer extends Uint8Array {
7172
sourceStart?: number,
7273
sourceEnd?: number,
7374
): number;
75+
// $FlowFixMe[incompatible-type]
7476
entries(): IteratorObject<[number, number]>;
7577
equals(otherBuffer: Buffer): boolean;
7678
fill(

‎flow-typed/npm/rxjs_v6.x.x.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ declare class rxjs$Observable<T> implements rxjs$Subscribable<T> {
116116
constructor(
117117
subscribe?: (subscriber: rxjs$Subscriber<T>) => rxjs$TeardownLogic,
118118
): void;
119-
static create(
120-
subscribe?: (subscriber: rxjs$Subscriber<T>) => rxjs$TeardownLogic,
121-
): rxjs$Observable<T>;
119+
static create<U>(
120+
subscribe?: (subscriber: rxjs$Subscriber<U>) => rxjs$TeardownLogic,
121+
): rxjs$Observable<U>;
122122
lift<R>(operator: rxjs$Operator<T, R>): rxjs$Observable<R>;
123123
subscribe(observer?: rxjs$PartialObserver<T>): rxjs$Subscription;
124124
subscribe(

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"eslint-plugin-relay": "^1.8.3",
9797
"fb-dotslash": "0.5.8",
9898
"flow-api-translator": "0.336.0",
99-
"flow-bin": "^0.337.0",
99+
"flow-bin": "^0.338.0",
100100
"flow-eslint": "0.336.0",
101101
"flow-parser": "0.336.0",
102102
"flow-transform": "0.336.0",

‎packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
#import <React/RCTUtils.h>
1212
#import "RCTJSRuntimeConfiguratorProtocol.h"
1313

14-
@protocol RCTComponentViewFactoryComponentProvider;
1514
@protocol RCTTurboModuleManagerDelegate;
1615
@protocol RCTHostDelegate;
1716
@class RCTBridge;
1817
@class RCTHost;
1918
@class RCTRootView;
20-
@class RCTSurfacePresenterBridgeAdapter;
2119
@class RCTBundleConfiguration;
2220
@class RCTDevMenuConfiguration;
2321

‎packages/react-native/Libraries/Components/TextInput/InputAccessoryView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @format
99
*/
1010

11-
import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
11+
import SafeAreaView from '../../../src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE';
1212
import StyleSheet, {
1313
type ColorValue,
1414
type ViewStyleProp,

‎packages/react-native/Libraries/Components/View/__tests__/ViewSafeAreaInsets-itest.js‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import '@react-native/fantom/src/setUpDefaultReactNativeEnvironment';
1212

1313
import type {HostInstance} from 'react-native';
1414

15+
import SafeAreaView from '../../../../src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE';
1516
import * as Fantom from '@react-native/fantom';
1617
import * as React from 'react';
1718
import {createRef} from 'react';
@@ -116,3 +117,41 @@ describe('experimental_onSafeAreaInsetsChange', () => {
116117
).toEqual(<rn-view experimental_onSafeAreaInsetsChange="true" />);
117118
});
118119
});
120+
121+
describe('<SafeAreaView>', () => {
122+
it('applies the insets it receives as padding', () => {
123+
const root = Fantom.createRoot();
124+
const nodeRef = createRef<HostInstance>();
125+
126+
Fantom.runTask(() => {
127+
root.render(<SafeAreaView collapsable={false} ref={nodeRef} />);
128+
});
129+
130+
expect(
131+
root
132+
.getRenderedOutput({
133+
props: ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'],
134+
})
135+
.toJSX(),
136+
).toEqual(<rn-view />);
137+
138+
Fantom.dispatchNativeEvent(nodeRef, 'safeAreaInsetsChange', {
139+
insets: INSETS,
140+
});
141+
142+
expect(
143+
root
144+
.getRenderedOutput({
145+
props: ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'],
146+
})
147+
.toJSX(),
148+
).toEqual(
149+
<rn-view
150+
paddingBottom="34"
151+
paddingLeft="0"
152+
paddingRight="0"
153+
paddingTop="44"
154+
/>,
155+
);
156+
});
157+
});

‎packages/react-native/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @format
99
*/
1010

11-
import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
11+
import SafeAreaView from '../../../src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE';
1212
import View from '../../Components/View/View';
1313
import StyleSheet from '../../StyleSheet/StyleSheet';
1414
import Text from '../../Text/Text';

‎packages/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
* @format
99
*/
1010

11-
import type {ViewProps} from '../../Components/View/ViewPropTypes';
1211
import type {LogLevel} from '../Data/LogBoxLog';
1312

14-
import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
13+
import SafeAreaView from '../../../src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE';
1514
import View from '../../Components/View/View';
1615
import StyleSheet from '../../StyleSheet/StyleSheet';
1716
import Text from '../../Text/Text';
@@ -27,13 +26,10 @@ type Props = Readonly<{
2726
level: LogLevel,
2827
}>;
2928

30-
const LogBoxInspectorHeaderSafeArea: React.ComponentType<ViewProps> =
31-
Platform.OS === 'android' ? View : SafeAreaView;
32-
3329
export default function LogBoxInspectorHeader(props: Props): React.Node {
3430
if (props.level === 'syntax') {
3531
return (
36-
<LogBoxInspectorHeaderSafeArea style={styles[props.level]}>
32+
<SafeAreaView style={styles[props.level]}>
3733
<View style={styles.header}>
3834
<View style={styles.title}>
3935
<Text
@@ -44,7 +40,7 @@ export default function LogBoxInspectorHeader(props: Props): React.Node {
4440
</Text>
4541
</View>
4642
</View>
47-
</LogBoxInspectorHeaderSafeArea>
43+
</SafeAreaView>
4844
);
4945
}
5046

@@ -56,7 +52,7 @@ export default function LogBoxInspectorHeader(props: Props): React.Node {
5652
const titleText = `Log ${props.selectedIndex + 1} of ${props.total}`;
5753

5854
return (
59-
<LogBoxInspectorHeaderSafeArea style={styles[props.level]}>
55+
<SafeAreaView style={styles[props.level]}>
6056
<View style={styles.header}>
6157
<LogBoxInspectorHeaderButton
6258
id="logbox_header_button_prev"
@@ -81,7 +77,7 @@ export default function LogBoxInspectorHeader(props: Props): React.Node {
8177
onPress={() => props.onSelectIndex(nextIndex)}
8278
/>
8379
</View>
84-
</LogBoxInspectorHeaderSafeArea>
80+
</SafeAreaView>
8581
);
8682
}
8783

‎packages/react-native/Libraries/LogBox/UI/LogBoxMessage.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getLinkRanges(string: string): ReadonlyArray<Range> {
2525
const regex = /https?:\/\/[^\s$.?#].[^\s]*/gi;
2626
const matches = [];
2727

28-
let regexResult: RegExp$matchResult | null;
28+
let regexResult: RegExpExecArray | null;
2929
while ((regexResult = regex.exec(string)) !== null) {
3030
if (regexResult != null) {
3131
matches.push({

0 commit comments

Comments
 (0)