Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from upstream through 2020-09-30 #833

Merged
merged 166 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from 162 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
4a6039c
Fix initial padding value for TextInput
sammy-SC Sep 16, 2020
0477644
Fabric: Simplifying ShadowTreeRevision implementation
shergin Sep 17, 2020
bc5a15d
Fabric: Using ShadowTreeRevision inside ShadowTree to store current c…
shergin Sep 17, 2020
0118cbf
Fabric: Introducing `ShadowTree::getCurrentRevision()`
shergin Sep 17, 2020
13bc3c8
Fabric: Removing shared_ptr from ShadowTreeCommitTransaction's argument
shergin Sep 17, 2020
04c874b
Fabric: Using `thread_local` keyword instead on own implementation in…
shergin Sep 17, 2020
18ffe12
Add an explicit NDK version to Android template (#29403)
safaiyeh Sep 17, 2020
f2ca6f5
Fabric: Removing `RCTCGColorRefUnretainedFromSharedColor()`
shergin Sep 17, 2020
d3bb76b
Fabric: Using RCTUIColorFromSharedColor everywhere
shergin Sep 17, 2020
241795c
Fabric: Color conversion functions now do not depend on internal impl…
shergin Sep 17, 2020
e4877ed
Fabric: Using `optional<int>` instead of `CGColorRef` on iOS
shergin Sep 17, 2020
5b93c49
Fabric: Using pre-cached UIColor objects for black, white, and clear …
shergin Sep 17, 2020
e7dbd84
Coalesce touchMove events
sammy-SC Sep 17, 2020
012ac09
Fix LayoutAnimations assertion on `adjustDelayedMutationIndicesForMut…
JoshuaGross Sep 17, 2020
ad400f3
Fix MountingCoordinator override mode
JoshuaGross Sep 17, 2020
b64a661
Fix MountingCoordinator RN_SHADOW_TREE_INTROSPECTION + LayoutAnimations
JoshuaGross Sep 17, 2020
3585bb4
Fix compilation for LayoutAnimations debug mode
JoshuaGross Sep 17, 2020
0599742
LayoutAnimations: at the end of every animation, issue an update muta…
JoshuaGross Sep 17, 2020
ee38751
Layout Events: throttle layout events sent to same node repeatedly
JoshuaGross Sep 17, 2020
9b76e21
Copy all blocks generated by TurboModules
RSNara Sep 17, 2020
bb00381
Upgrade Hermes dependency to 0.7.0
Huxpro Sep 17, 2020
c453dbc
Fabric: Enabling state auto-repeating for all state updates (gated)
shergin Sep 17, 2020
9b094ee
Stop accessing JVM in ~JavaTurboModule
RSNara Sep 17, 2020
2788ee8
Improve performance logger definition and type safety
rubennorte Sep 18, 2020
4d84296
Remove unused timespan descriptions from performance loggers
rubennorte Sep 18, 2020
fc4f667
Remove unnecessary addTimeAnnotation method from performance logger
rubennorte Sep 18, 2020
f1b84dd
Remove update option from stopTimestamp method in performance loggers
rubennorte Sep 18, 2020
d1b695d
Propagate nativeID in createAnimatedComponent
sammy-SC Sep 18, 2020
f72c6f2
Reintroduce experiment flag for Reparenting/Flattening Differ
JoshuaGross Sep 18, 2020
22804a6
Add cause to jsi::instrumentation::collectGarbage
Sep 18, 2020
d8b70b1
Update Flipper (#29787)
mweststrate Sep 18, 2020
fa44c46
Fix flattening/unflattening case on Android
JoshuaGross Sep 18, 2020
0344871
Have BatchMountItem log the exact item that crashes
JoshuaGross Sep 18, 2020
752e709
Additional differ test: flattening differ should not produce DELETE a…
JoshuaGross Sep 18, 2020
1ddc654
Fabric: Removing catching all exceptions in UIManager::completeRoot
shergin Sep 19, 2020
57dd48b
Fabric: Marking all JS function lambdas `noexcept` in UIManagerBinding
shergin Sep 19, 2020
7c93f5b
Move TurboModule Core from ReactCommon/turbomodule to ReactCommon/rea…
fkgozali Sep 19, 2020
7b82df2
Notify ViewManagers when a View is deleted
JoshuaGross Sep 19, 2020
412fc7d
Prevent calling onTextLayout with the same value
sammy-SC Sep 20, 2020
5be4445
TurboModule Android: compile TurboModule C++ Core into ReactAndroid
fkgozali Sep 20, 2020
e1b63ae
Add additional logging and asserts to StubViewTree
JoshuaGross Sep 20, 2020
df9ada5
Deleting unnecessary Differentiator code
JoshuaGross Sep 20, 2020
81c6170
LayoutAnimations: simplify index adjustment, (un)flattening detection
JoshuaGross Sep 20, 2020
54016fa
Deploy Flow v0.134.0
mvitousek Sep 21, 2020
3f85b83
Daily `arc lint --take CLANGFORMAT`
Sep 21, 2020
22b5f32
Add extras to timespan and points in performance logger
Sep 21, 2020
e1bf515
Making Android versionCodeOverride for new apps using the template hu…
gedeagas Sep 21, 2020
8cca54a
Codegen Android: adjust JNI output to compile from Gradle
fkgozali Sep 21, 2020
2b46fd0
Codegen Android: Compile ReactAndroid codegen C++ output
fkgozali Sep 21, 2020
30d170a
Use Element<> in FindNodeAtPointTest
sammy-SC Sep 21, 2020
18f29db
Fix ordering of children in LayoutableShadowNode::findNodeAtPoint
sammy-SC Sep 21, 2020
23717e4
Call stopObserving on correct queue
appden Sep 22, 2020
acb967e
Pull out construction of Layout from TextLayoutManager.measureText in…
sammy-SC Sep 22, 2020
c1af56d
Wire call from C++ to Java to get lines measurements
sammy-SC Sep 22, 2020
a650696
Implement onTextLayout on Text component.
sammy-SC Sep 22, 2020
83777cb
Fix Xcode bundler in staging and release (#29477)
Sep 22, 2020
891b6b0
New Share API Use Cases (#29856)
chirag-singhal Sep 22, 2020
3a6327a
Open source react-native-modules ESLint rule
RSNara Sep 22, 2020
311d4e9
feat: enable bitcode (#365)
grabbou Sep 22, 2020
e125f12
Add new ReactMarkers for bridgeless init start/end
Sep 22, 2020
246f746
Set useLineSpacingFromFallbacks when measuring text
sammy-SC Sep 23, 2020
6e08f84
Make React-Core compatible with Swift modules (#29995)
alloy Sep 23, 2020
6d355c0
Sort logger alphabetically
Sep 23, 2020
aebb97b
Add close() to IPerformanceLogger
Sep 23, 2020
c3ab2a2
RNTester Android: Add stub C++ for TurboModule provider (#30014)
fkgozali Sep 23, 2020
43abf23
New Button Component Use Cases (#29848)
chirag-singhal Sep 24, 2020
99db9f2
Minor Code Improvements in RNTester (#29868)
anku255 Sep 24, 2020
64ac01d
Prevent change of delegate in RCTUITextView
sammy-SC Sep 24, 2020
c907202
Fix touch handling in bridged paper components
sammy-SC Sep 24, 2020
77c1657
TurboModule Android: add dependency on ReactAndroid codegen output to…
fkgozali Sep 24, 2020
371430d
Fix rounding in Slider component
sammy-SC Sep 24, 2020
663b5a8
Do not override decoders to RCTImageLoader (#29711)
sjchmiela Sep 24, 2020
d5f7622
Fix rounding issue when setting padding
sammy-SC Sep 24, 2020
9f00752
LayoutAnimations: force props to update when executing "final" mutations
JoshuaGross Sep 24, 2020
abff021
TurboModule Android: compile codegen C++ output into librntester_appm…
fkgozali Sep 24, 2020
c2447d3
Follow-up for fixing xiaomi NullPointer crash
luluwu2032 Sep 25, 2020
c015f48
Workaround for Date Picker in iOS14
Sep 25, 2020
e2fd9d4
Group accessible views using the view hierarchy
p-sun Sep 25, 2020
920bd2c
Fabric: Fixed crash in `colorComponentsFromColor()`
shergin Sep 26, 2020
1438543
round up layoutWidth for Android 11 in ReactTextShadowNode
Sep 26, 2020
14042fb
Don't crash when promise task is cancelled before its resolved (#29969)
robwalkerco Sep 26, 2020
45a4a67
Android: consolidate various prebuilt C++ .so configuration into Andr…
fkgozali Sep 26, 2020
4072b18
TurboModule Android: rename libreact_nativemodule_manager to libturbo…
fkgozali Sep 26, 2020
9dbab5f
TurboModule Android: Implement TurboModuleManagerDelegate specific to…
fkgozali Sep 26, 2020
8d4b5ef
TurboModule Android: allow RNTester to activate TurboModule system
fkgozali Sep 26, 2020
e599d6c
Fix passing react native path in Podfile template (#29285)
janicduplessis Sep 26, 2020
27378b7
Animated: Early detection of division by zero in AnimatedDivision
shergin Sep 27, 2020
308f9a1
Fabric: Failing early in case if a argument of `-[RCTComponentViewFac…
shergin Sep 27, 2020
0b96ada
Fabric: Adding `#pragma once` to `ImageTelemetry.h`
shergin Sep 27, 2020
863dd2d
Make blocking people work in Dating Settings
luluwu2032 Sep 28, 2020
e5006b3
Fix slider's initial value
sammy-SC Sep 28, 2020
2c896d3
Do not attach root view until size is available
sammy-SC Sep 28, 2020
35b8f76
RNTester: Add TextInput example to RTL tester
JoshuaGross Sep 28, 2020
b85b4f4
Update PerformanceLogger to nullable timespans, points, extras
Sep 28, 2020
0a0d2c9
Make the Instagram app compile again
martin-ortega Sep 28, 2020
9da4d87
Pressability: Support Lazy Hook Initialization
yungsters Sep 29, 2020
06ce643
Text: Cleanup Native Component Configuration
yungsters Sep 29, 2020
2160377
remove most of tvOS remnants from the code (#29407)
Simek Sep 29, 2020
29f5dc2
chore: deduplicate lock, update packages repository fields (#30044)
Simek Sep 29, 2020
da8b50c
Daily `arc lint --take CLANGFORMAT`
Sep 29, 2020
121141c
Convert AndroidDialogPicker to JS view configs
luluwu2032 Sep 29, 2020
5ccb5f5
Fix dismissal animation of Modal Component
sammy-SC Sep 29, 2020
c06f765
Allow Java classes to hook into ScrollView scroll and layout events
JoshuaGross Sep 29, 2020
a7c026e
Remove unused Fabric image instrumentation
p-sun Sep 29, 2020
ef145ad
Split NativeImageStore into iOS and Android counterparts
RSNara Sep 29, 2020
341e05f
Allow NativeModule method return types to use type aliases
RSNara Sep 29, 2020
5142e99
Delete NativeModuleSchemaBuilderConfig type
RSNara Sep 29, 2020
1435d65
Restructure getTypes function
RSNara Sep 29, 2020
22d6e04
Clean up Module/Component detection logic in Flow parser
RSNara Sep 29, 2020
8c138ba
Fix parser's buildSchema's return type
RSNara Sep 29, 2020
7805772
Clean up parsers/flow/modules/index.js
RSNara Sep 29, 2020
747f493
Colocate alias/method generation logic
RSNara Sep 29, 2020
f9ea525
Cleanup buildMethodSchema and introduce nullable methods
RSNara Sep 29, 2020
2d19037
Rewrite Flow module parser
RSNara Sep 29, 2020
aba4e87
Add unit tests to validate module parser
RSNara Sep 29, 2020
572e1da
Fix type alias nullability resolution in module parser
RSNara Sep 29, 2020
1194a36
Export module type annotations from CodegenSchema
RSNara Sep 29, 2020
2e0fb69
Refactor: Introduce Required<T> generic type
RSNara Sep 29, 2020
92a6722
Refactor: Make NativeModuleAliasMap $ReadOnly
RSNara Sep 29, 2020
4927de6
Rename GenericPromiseTypeAnnotation to PromiseTypeAnnotation
RSNara Sep 29, 2020
91a7da0
Refactor: Make NativeModuleArrayTypeAnnotation elementType customizable
RSNara Sep 29, 2020
5f5ccfc
Update generator fixtures to comply with Schema flow types
RSNara Sep 29, 2020
c300193
Create utilities for module generators
RSNara Sep 29, 2020
c267b8d
Rewrite ObjC++ module generator
RSNara Sep 29, 2020
1ac1255
E2E snapshot test ObjC++ generator
RSNara Sep 29, 2020
c0408b5
Fix GenerateModuleCpp
RSNara Sep 29, 2020
4ab7cc2
Fix GenerateModuleH
RSNara Sep 29, 2020
560ac1a
Fix GenerateModuleJavaSpec
RSNara Sep 29, 2020
cedd628
Fix GenerateModuleJniH
RSNara Sep 29, 2020
1b3dc1d
Fix GenerateModuleJniCpp
RSNara Sep 29, 2020
97d3e85
Fix ObjC++ module generator output
RSNara Sep 29, 2020
6d6e046
Fix ObjC++ structs and method mapping
RSNara Sep 29, 2020
6e6443a
Remove header_namespace from module codegen target
RSNara Sep 29, 2020
521b167
Align multi-line TextInput onSubmitEditing behavior (#29177)
tido64 Sep 29, 2020
ca51dc6
Fix mutation sorting function
JoshuaGross Sep 29, 2020
b931bd3
TurboModule Android: properly set up RNTester ndkBuild and cleanup de…
fkgozali Sep 30, 2020
b9a1ea9
TurboModule Android: move SampleTurboModule impl and spec to OSS
fkgozali Sep 30, 2020
94b198c
TurboModule Android: install SampleTurboModule and the playground to …
fkgozali Sep 30, 2020
1d89ef8
TurboModule: exclude NativeSampleTurboModule in the schema
fkgozali Sep 30, 2020
5bb54c9
Upgrade Robolectric from 4.3.1 -> 4.4
Sep 30, 2020
c92e767
TurboModule iOS: Remove module filters
hramos Sep 30, 2020
d373a8d
Fix React Native Robolectric 4.4 deps (#30073)
Sep 30, 2020
0544568
Drop old state updates
sammy-SC Sep 30, 2020
8c77f70
Remove idx package from inspector msggen
Sep 30, 2020
7054e58
iOS: fix ios-configure-glog.sh syntax issue
hramos Sep 30, 2020
8a31dfe
chore: update RNTester example link in PanResponder comment (#30051)
Simek Sep 30, 2020
18f7aba
Android: removed Robolectric 4.3.1 Buck configuration
fkgozali Oct 1, 2020
c421838
Fixed incorrect assert in RCTScrollViewComponentView
shergin Oct 1, 2020
553fb8b
Update Android Gradle plugin to 4.0.1 (#29013)
friederbluemle Oct 1, 2020
8b7fd37
Log View hierarchy if removeViewAt crashes
JoshuaGross Oct 1, 2020
dd35bf5
Deploy Flow v0.135.0
samwgoldman Oct 1, 2020
3e0ced8
Merge commit '7b82df287d36e39073d29e3ae3adbe82cf424055' into amgleitm…
amgleitman Sep 22, 2021
100b98f
Merge commit '54016faa7dfdde321023e729636a45b5bb682856' into amgleitm…
amgleitman Sep 22, 2021
2fd7f46
Merge commit '23717e48aff3d7fdaea30c9b8dcdd6cfbb7802d5' into amgleitm…
amgleitman Sep 22, 2021
4f80fbd
Merge commit '891b6b0c14d820d38f0a0b8f5ebf749c5cd14a94' into amgleitm…
amgleitman Sep 22, 2021
b0c8b79
Merge commit '3a6327a5d9ebfd0de56c37009ab7de1d0e6bdf85' into amgleitm…
amgleitman Sep 22, 2021
0e18e8f
Merge commit 'e599d6c5d338c1b4d1a0d988e0d9ff83c179fb54' into amgleitm…
amgleitman Sep 23, 2021
7dc9633
Merge commit '06ce64356594a921cd9ae4f71c15dd56dd0e53a3' into amgleitm…
amgleitman Sep 23, 2021
648f7dd
Merge commit '216037757494edf990ecb5a3dfdf6f75bab818a1' into amgleitm…
amgleitman Sep 24, 2021
682b5a2
Merge commit 'dd35bf534c4ced6af853bf2c9a995808e42b8a95' into amgleitm…
amgleitman Sep 25, 2021
50b0b81
Update RNTester Podfile.lock
amgleitman Sep 25, 2021
b5e5c74
Merge branch 'master' into amgleitman/0.64-merge-2020-09-30
amgleitman Sep 25, 2021
9fd177f
FIx Android patches
amgleitman Sep 27, 2021
154fd42
Back out "Align multi-line TextInput onSubmitEditing behavior"
shergin Oct 8, 2020
9af8dcd
Add explanation for disabling @react-native/codegen/react-native-modules
amgleitman Sep 27, 2021
9ae7f5f
Add TARGET_OS_OSX back to -textInputShouldReturn
amgleitman Sep 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ while :; do
shift
;;

--tvos)
RUN_IOS=1
shift
;;

*)
break
esac
Expand Down
21 changes: 13 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
"./packages/eslint-config-react-native-community/index.js"
],

"plugins": [
"@react-native/eslint-plugin-codegen"
],

"overrides": [
{
"files": [
"Libraries/**/*.js",
],
rules: {
'@react-native-community/no-haste-imports': 2,
'@react-native-community/error-subclass-name': 2,
'@react-native-community/platform-colors': 2,
"rules": {
"@react-native-community/no-haste-imports": 2,
"@react-native-community/error-subclass-name": 2,
"@react-native-community/platform-colors": 2,
"@react-native/codegen/react-native-modules": 2
}
},
{
Expand All @@ -40,8 +45,8 @@
],
"env": {
"jasmine": true,
"jest": true,
},
},
],
"jest": true
}
}
]
}
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ untyped-import
untyped-type-import

[version]
^0.133.0
^0.135.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ untyped-import
untyped-type-import

[version]
^0.133.0
^0.135.0
2 changes: 1 addition & 1 deletion .flowconfig.macos
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ untyped-import
untyped-type-import

[version]
^0.133.0
^0.135.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ project.xcworkspace/*
/build/
/packages/react-native-codegen/android/build/
/packages/react-native-codegen/android/gradlePlugin-build/gradlePlugin/build
/packages/rn-tester/android/app/.cxx/
/packages/rn-tester/android/app/build/
/packages/rn-tester/android/app/gradle/
/packages/rn-tester/android/app/gradlew
Expand Down
2 changes: 2 additions & 0 deletions Libraries/ActionSheetIOS/NativeActionSheetManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import type {ProcessedColorValue} from '../StyleSheet/processColor'; // TODO(mac
export interface Spec extends TurboModule {
+getConstants: () => {||};
+showActionSheetWithOptions: (
// TODO(macOS GH#774)
// eslint-disable-next-line @react-native/codegen/react-native-modules
options: {|
+title?: ?string,
+message?: ?string,
Expand Down
4 changes: 2 additions & 2 deletions Libraries/ActionSheetIOS/React-RCTActionSheet.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Pod::Spec.new do |s|
s.documentation_url = "https://reactnative.dev/docs/actionsheetios"
s.license = package["license"]
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "10.0", :tvos => "10.0", :osx => "10.14" } # TODO(macOS GH#214)
s.platforms = { :ios => "10.0", :osx => "10.14" } # TODO(macOS GH#214)
s.source = source
s.source_files = "*.{m}"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.header_dir = "RCTActionSheet"

s.dependency "React-Core/RCTActionSheetHeaders", version
Expand Down
1 change: 1 addition & 0 deletions Libraries/Alert/NativeAlertManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type Args = {|

export interface Spec extends TurboModule {
+alertWithArgs: (
// eslint-disable-next-line @react-native/codegen/react-native-modules
args: Args,
callback: (id: number, value: string) => void,
) => void;
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Animated/NativeAnimatedModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type AnimatingNodeConfig = Object;
export interface Spec extends TurboModule {
+startOperationBatch: () => void;
+finishOperationBatch: () => void;

// eslint-disable-next-line @react-native/codegen/react-native-modules
+createAnimatedNode: (tag: number, config: AnimatedNodeConfig) => void;
+getValue: (tag: number, saveValueCallback: SaveValueCallback) => void;
+startListeningToAnimatedNodeValue: (tag: number) => void;
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Animated/NativeAnimatedTurboModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type AnimatingNodeConfig = Object;
export interface Spec extends TurboModule {
+startOperationBatch: () => void;
+finishOperationBatch: () => void;

// eslint-disable-next-line @react-native/codegen/react-native-modules
+createAnimatedNode: (tag: number, config: AnimatedNodeConfig) => void;
+getValue: (tag: number, saveValueCallback: SaveValueCallback) => void;
+startListeningToAnimatedNodeValue: (tag: number) => void;
Expand Down
3 changes: 2 additions & 1 deletion Libraries/Animated/createAnimatedComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
style={mergedStyle}
ref={this._setComponentRef}
nativeID={
this._isFabric() ? 'animatedComponent' : undefined
props.nativeID ??
(this._isFabric() ? 'animatedComponent' : undefined)
} /* TODO: T68258846. */
// The native driver updates views directly through the UI thread so we
// have to make sure the view doesn't get optimized away because it cannot
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Animated/nodes/AnimatedDivision.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AnimatedDivision extends AnimatedWithChildren {

constructor(a: AnimatedNode | number, b: AnimatedNode | number) {
super();
if (b === 0) {
if (b === 0 || (b instanceof AnimatedNode && b.__getValue() === 0)) {
console.error('Detected potential division by zero in AnimatedDivision');
}
this._a = typeof a === 'number' ? new AnimatedValue(a) : a;
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Blob/React-RCTBlob.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pod::Spec.new do |s|
s.homepage = "https://reactnative.dev/"
s.license = package["license"]
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "10.0", :tvos => "10.0", :osx => "10.14" } # TODO(macOS GH#214)
s.platforms = { :ios => "10.0", :osx => "10.14" } # TODO(macOS GH#214)
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
s.source = source
s.source_files = "*.{h,m,mm}"
Expand Down
51 changes: 0 additions & 51 deletions Libraries/Components/AppleTV/TVEventHandler.js

This file was deleted.

21 changes: 17 additions & 4 deletions Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
* @flow
*/

'use strict';
Expand All @@ -14,6 +14,8 @@ import * as React from 'react';

import codegenNativeCommands from '../../Utilities/codegenNativeCommands';
import requireNativeComponent from '../../ReactNative/requireNativeComponent';
import registerGeneratedViewConfig from '../../Utilities/registerGeneratedViewConfig';
import AndroidDialogPickerViewConfig from './AndroidDialogPickerViewConfig';

import type {
DirectEventHandler,
Expand Down Expand Up @@ -64,6 +66,17 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
supportedCommands: ['setNativeSelectedPosition'],
});

export default (requireNativeComponent<NativeProps>(
'AndroidDialogPicker',
): NativeType);
let AndroidDialogPickerNativeComponent;
if (global.RN$Bridgeless) {
registerGeneratedViewConfig(
'AndroidDialogPicker',
AndroidDialogPickerViewConfig,
);
AndroidDialogPickerNativeComponent = 'AndroidDialogPicker';
} else {
AndroidDialogPickerNativeComponent = requireNativeComponent<NativeProps>(
'AndroidDialogPicker',
);
}

export default ((AndroidDialogPickerNativeComponent: any): NativeType);
30 changes: 30 additions & 0 deletions Libraries/Components/Picker/AndroidDialogPickerViewConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/

'use strict';

import type {GeneratedViewConfig} from '../../Utilities/registerGeneratedViewConfig';

const AndroidDialogPickerViewConfig = {
uiViewClassName: 'AndroidDialogPicker',
bubblingEventTypes: {},
directEventTypes: {},
validAttributes: {
color: {process: require('../../StyleSheet/processColor')},
backgroundColor: {process: require('../../StyleSheet/processColor')},
enabled: true,
items: true,
prompt: true,
selected: true,
onSelect: true,
},
};

module.exports = (AndroidDialogPickerViewConfig: GeneratedViewConfig);
18 changes: 11 additions & 7 deletions Libraries/Components/Pressable/Pressable.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ function Pressable(props: Props, forwardedRef): React.Node {

const hitSlop = normalizeRect(props.hitSlop);

const restPropsWithDefaults: React.ElementConfig<typeof View> = {
...restProps,
...android_rippleConfig?.viewProps,
acceptsFirstMouse: acceptsFirstMouse !== false && !disabled, // [TODO(macOS GH#774)
enableFocusRing: enableFocusRing !== false && !disabled, // ]TODO(macOS GH#774)
accessible: accessible !== false,
focusable: focusable !== false,
hitSlop,
};

const config = useMemo(
() => ({
disabled,
Expand Down Expand Up @@ -239,14 +249,8 @@ function Pressable(props: Props, forwardedRef): React.Node {

return (
<View
{...restProps}
{...restPropsWithDefaults}
{...eventHandlers}
{...android_rippleConfig?.viewProps}
acceptsFirstMouse={acceptsFirstMouse !== false && !disabled} // [TODO(macOS GH#774)
enableFocusRing={enableFocusRing !== false && !disabled} // ]TODO(macOS GH#774)
accessible={accessible !== false}
focusable={focusable !== false}
hitSlop={hitSlop}
ref={viewRef}
style={typeof style === 'function' ? style({pressed}) : style}
collapsable={false}>
Expand Down
3 changes: 1 addition & 2 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1315,13 +1315,12 @@ class ScrollView extends React.Component<Props, State> {
if (refreshControl) {
if (Platform.OS === 'ios') {
// On iOS the RefreshControl is a child of the ScrollView.
// tvOS lacks native support for RefreshControl, so don't include it in that case
return (
/* $FlowFixMe(>=0.117.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.117 was deployed. To see the error,
* delete this comment and run Flow. */
<ScrollViewClass {...props} ref={this._setNativeRef}>
{Platform.isTV ? null : refreshControl}
{refreshControl}
{contentContainer}
</ScrollViewClass>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface Spec extends TurboModule {
* - 'default'
* - 'dark-content'
*/
// eslint-disable-next-line @react-native/codegen/react-native-modules
+setStyle: (statusBarStyle?: ?string) => void;
+setHidden: (hidden: boolean) => void;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface Spec extends TurboModule {
* - 'dark-content'
* - 'light-content'
*/
// eslint-disable-next-line @react-native/codegen/react-native-modules
+setStyle: (statusBarStyle?: ?string, animated: boolean) => void;
/**
* - withAnimation can be: 'none' | 'fade' | 'slide'
Expand Down
55 changes: 0 additions & 55 deletions Libraries/Components/Touchable/TVTouchable.js

This file was deleted.

Loading