Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
d2f5044
Catch exceptions thrown by user callbacks
jpporto Jan 28, 2022
6351064
Introduce RuntimeScheduler::callImmediates
sammy-SC Jan 29, 2022
b4b5c59
Add ComponentNameResolverManager to make UIManager.hasViewManagerConf…
p-sun Jan 29, 2022
79ae50f
Remove Static View Configs from bridge mode
p-sun Jan 29, 2022
ab843c5
Disable static ViewConfigs in bridge mode & enable for bridgeless mod…
p-sun Jan 29, 2022
0ab0c5a
Disable static ViewConfigs in bridge mode & enable for bridgeless mod…
p-sun Jan 29, 2022
3f49e67
Support color animation with native driver for Android
genkikondo Jan 29, 2022
d682753
Support setting hitSlop with single value (JS) [re-land]
javache Jan 31, 2022
6239e2f
Android: Fix crash when WindowInsets is null on ReactRootView (#32989)
enahum Jan 31, 2022
c1bb945
Changelog for 0.67.2 (#33007)
ShikaSD Jan 31, 2022
50c8e97
Update StatusBar for Android 11+ (#32975)
ieatfood Jan 31, 2022
dc507be
Replace fb_xplat_platform_specific_rule calls where rule = fb_java_li…
kkolur76 Jan 31, 2022
554b35d
Revert D33852709: Replace fb_xplat_platform_specific_rule calls where…
kkolur76 Jan 31, 2022
7b9490b
Introduce PlatformBaseViewConfig and fix SVC for RCTView
RSNara Jan 31, 2022
10199b1
RN: Remove `{Color,EdgeInsets,Point}PropType` and `ViewPropTypes`
yungsters Feb 1, 2022
79975d1
Fix display metric used for scrollview snapping
javache Feb 1, 2022
e8f7a1b
chore(deps): Bump shelljs from 0.8.4 to 0.8.5 (#33001)
gabrieldonadel Feb 1, 2022
3552ff0
Back out "Delete RuntimeScheduler yielding mobile config"
Guad Feb 1, 2022
cb42049
Support platform color with AnimatedColor on Android
genkikondo Feb 2, 2022
3e229f2
RN: Remove `propTypes` from Image, Text, and TextInput
yungsters Feb 2, 2022
cdfddb4
RN: Remove `deprecated-react-native-props` Dependency
yungsters Feb 2, 2022
eb08af5
Implement Runtime.callFunctionOn
jpporto Feb 2, 2022
f185d42
chore(LinkingExample): Update external URLs description (#33023)
gabrieldonadel Feb 2, 2022
fbb9d33
Update Danger JS to v11 (#33027)
orta Feb 2, 2022
65df2f3
Support view allocation counters with Venice
Feb 2, 2022
848ba6f
chore(deps): bump CLI version to 7 to get new version of Metro (67) (…
kelset Feb 2, 2022
a86cae7
Update gradle-download-task to 5.0.1 (#32995)
michel-kraemer Feb 2, 2022
3568a72
Implement Runtime.getHeapUsage for hermes chrome inspector (#32895)
janicduplessis Feb 2, 2022
1bf84a6
Make automatic SampleProfiling registration optional.
jpporto Feb 2, 2022
48318b1
Cleanup OSS proguard rules and add @DoNotStripAny
Feb 2, 2022
09e418e
Increase max heap size for template gradle build
Feb 2, 2022
08faa13
Delete ReactFeatureFlags.enableRoundedCornerPostprocessing
genkikondo Feb 2, 2022
1f77801
Fix JS animated node value updating when listener is attached
genkikondo Feb 3, 2022
6584304
Make Animated.Interpolation config read-only
motiz88 Feb 3, 2022
491c423
Pass raw ShadowNode instead of shared_ptr
sammy-SC Feb 3, 2022
4cbcb7a
Abandon mc react_fabric.enable_event_emitter_wrapper_raw_pointer
sammy-SC Feb 3, 2022
fa85417
Do not bundle libhermes.so or libjsc.so inside the React Native Andro…
cortinico Feb 3, 2022
0a79888
fix: Access to relative paths when invoking test-manual-e2e (#33000)
gabrieldonadel Feb 3, 2022
5e933fd
Yield for each access to the runtime
sammy-SC Feb 3, 2022
70062c1
ci: Add build tests for RNTester (#33033)
gabrieldonadel Feb 3, 2022
9cd4334
Attempt to fix crash during app termination
sammy-SC Feb 3, 2022
b2f871a
Fix crash with SectionList.scrollToLocation and private property munging
motiz88 Feb 4, 2022
7ef14af
Deploy 0.171.0 to xplat
pieterv Feb 4, 2022
8c5cacf
Fix type import style in EventEmitter and Linking
motiz88 Feb 4, 2022
1b44e5c
ci: Optimize Android RNTester build job (#33042)
gabrieldonadel Feb 4, 2022
2bc883e
Back out "Implement Runtime.getHeapUsage for hermes chrome inspector"
Feb 4, 2022
7cc7e66
Update javadoc of ReactRoot.getState()
mdvacca Feb 4, 2022
b8a2f34
Make lefthandObjectDiff private to verifyComponentAttributeEquivalence
RSNara Feb 5, 2022
be260b9
Fix ScrollView contentOffset
genkikondo Feb 5, 2022
3633a05
Invoke registerForRemoteNotifications on main UI thread to avoid erro…
Feb 5, 2022
eb19499
Enable custom sound for local notification in PushNotificationIOS
Feb 5, 2022
113f825
lift out prerendering logic into its own module
philIip Feb 5, 2022
3eddc9a
Opacity in TouchableOpacity properly react to state change (#32956)
hetanthakkar Feb 7, 2022
ee454e4
Add description to ConcreteComponentDescriptor::adopt
sammy-SC Feb 7, 2022
31a92b0
Add some tests for compliance to the Chrome DevTools Protocol
Feb 7, 2022
b0bae21
Improve error when using mutable object as prop
javache Feb 7, 2022
d79f658
Rename RuntimeScheduler::callImmediates to RuntimeScheduelr::callExpi…
sammy-SC Feb 7, 2022
731429e
Enable RuntimeScheduler::callExpiredTasks on Android
sammy-SC Feb 7, 2022
9a35818
Use trait collection to resolve border colors (#32492)
danilobuerger Feb 7, 2022
d1c2458
fix: Fix Typo in Java Docs (#33050)
mrousavy Feb 7, 2022
99890bf
Move RedBoxHandler interface to the proper interfaces directory
ryancat Feb 7, 2022
97ce240
Update RedBoxDialog to separate content view and dialog
ryancat Feb 7, 2022
1f15a64
Add RawEventTelemetryEventEmitter interface to ReactNativePrivateInte…
JoshuaGross Feb 7, 2022
271b913
Rename RawEventTelemetryEventEmitter to RawEventEmitter
JoshuaGross Feb 8, 2022
921ed73
Test Chrome DevTools Protocol Responses Format
Feb 8, 2022
669cd02
Test Chrome DevTools Notifications
Feb 8, 2022
ebc856b
Check if view exists before skipping CREATE command
Feb 8, 2022
3346efb
Make react-native depend on react-native-gradle-plugin
cortinico Feb 8, 2022
cd79317
Remove `react-native-gradle-plugin` as a dependency from template's p…
cortinico Feb 8, 2022
1a04412
Use context from view when resolving platform color if activity doesn…
genkikondo Feb 8, 2022
5b66bb9
Add missing symbol handling in kindToString
neildhar Feb 8, 2022
bb435a2
Support AnimatedColor.setValue for platform colors
genkikondo Feb 9, 2022
95f950d
Move validateStaticViewConfigs to RNHostComponentList route
RSNara Feb 9, 2022
f89ed90
Remove the onChange event for Slider
RSNara Feb 9, 2022
971ba5c
Re-introduce {eventName}: true ViewConfig ValidAttributes in Static V…
RSNara Feb 9, 2022
e737270
Daily `arc lint --take CLANGFORMAT`
Feb 9, 2022
97064ae
Fix DarkMode for DatePickerDialogFragment
mdvacca Feb 9, 2022
a75bbe7
Fix docs in ModalHostView headers
javache Feb 9, 2022
8ee1f83
Update `test_android_template` to use `build_npm_package` (#33068)
cortinico Feb 9, 2022
eafa5bc
Log timestamp in ReactMarker.logFabricMarker method
mdvacca Feb 9, 2022
4e947ec
fix: jvm 11 error message from ReactPlugin.kt and react.gradle (#33048)
numandev1 Feb 9, 2022
3112238
De-duplicate conversion of SharedColor to Android int value
Feb 9, 2022
a6c792d
React Native sync for revisions 51947a1...a3bde79
kacieb Feb 9, 2022
3d8a7fe
Set Java source/target compatibility for react-native-gradle-plugin to 8
cortinico Feb 9, 2022
216ac27
Fix analysis errors with the FBCODE platform (#33073)
aniketmathur Feb 9, 2022
42b3917
Fix ReactCommon Break for Windows (#33047)
chiaramooney Feb 9, 2022
4f42f4d
Revert D34084935: Fix analysis errors with the FBCODE platform
aniketmathur Feb 9, 2022
5341ad8
use root locale when converting string case (#33028)
halaei Feb 9, 2022
fc7eb91
Add RedBoxSurfaceDelegate to DevSupportManagerBase to abstract surfac…
ryancat Feb 9, 2022
f7e7e89
provided_dep does not need to be a dep too
IanChilds Feb 10, 2022
1a83dc3
Fix a broken input for the Korean alphabet in TextInput (#32523)
kmsbernard Feb 10, 2022
159eb0b
Normalize platform colors early
motiz88 Feb 10, 2022
b467094
Add StringPrimitive::create for UTF8 strings
jpporto Feb 10, 2022
9ed2df6
Fix StatusBar on Android API 30 (#33058)
ieatfood Feb 10, 2022
980c52d
Disable view flattening when the view has event handlers on Android
Feb 10, 2022
e47e869
Remove gating for react_fabric.enableV2AsynchronousEventBeat
sammy-SC Feb 10, 2022
172f990
exported and provided dep should be exported_provided_dep
IanChilds Feb 10, 2022
e254073
Update ViewConfigIgnore comment
RSNara Feb 10, 2022
327c4d7
Place Android.mk dependencies on separate lines for codegen.
cortinico Feb 10, 2022
6b61995
build(deps): Bump android Appcompat to 1.4.1 (#33072)
gabrieldonadel Feb 10, 2022
49f3f47
Support color animation with native driver for iOS
genkikondo Feb 10, 2022
e48d473
Merge 49f3f47b1e9b840e4374d46b105604f4d2c22dd5
Saadnajmi Jan 10, 2023
77e1f83
Resolve ViewConfig conflicts
Saadnajmi Jan 10, 2023
cc7f31a
Resolve package.json and lock file conflicts
Saadnajmi Jan 10, 2023
fbd3290
Resolve CircleCI config conflicts
Saadnajmi Jan 10, 2023
ebcf646
:Merge 49f3f47b1e9b840e4374d46b105604f4d2c22dd5
Saadnajmi Jan 10, 2023
3ff4b32
Don't use borderColorsWithTraitCollection on macOS
Saadnajmi Jan 11, 2023
cc38d70
Resolve RCTUITextView conflict
Saadnajmi Jan 11, 2023
58360a8
Fix lint / flow issues
Saadnajmi Jan 13, 2023
ee77d48
ScrollView and TextInput ViewConfig refactor
Saadnajmi Jan 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 82 additions & 52 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ jobs:
- run:
name: "Run Tests: JavaScript Tests"
command: node ./scripts/run-ci-javascript-tests.js --maxWorkers 2
# [macOS] Github#949 Disable this failing test
# TODO(macOS GH#949): Disable this failing test
# - run_e2e:
# platform: js

Expand Down Expand Up @@ -388,8 +388,6 @@ jobs:
steps:
- brew_install:
package: watchman
- brew_install:
package: node@16
- run:
name: "Brew: Tap wix/brew"
command: HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
Expand Down Expand Up @@ -576,41 +574,39 @@ jobs:
steps:
- checkout
- run_yarn
- attach_workspace:
at: .

- run:
name: Setup the Android Template
name: Create Android template project
command: |
REPO_ROOT=$(pwd)
PACKAGE=$(cat build/react-native-package-version)
PATH_TO_PACKAGE="$REPO_ROOT/build/$PACKAGE"
cd template
# We replace the "react-native" dependency version with file:.. so we use it from source.
sed -i 's/\"react-native\"\:.*/\"react-native\"\: \"file\:\.\.\"/g' package.json
npm add $PATH_TO_PACKAGE
npm install
# react-native-community/cli is needed as the Android template is referencing a .gradle file inside it.
npm i @react-native-community/cli

- run:
name: Bundle the latest version of ReactAndroid
command: ./gradlew :ReactAndroid:publishReleasePublicationToNpmRepository

- run:
name: Build the template application
command: cd template/android/ && ./gradlew assembleDebug

# -------------------------
# JOBS: Test Docker
# JOBS: Test Android RNTester
# -------------------------
test_docker:
machine: true
test_android_rntester:
executor: reactnativeandroid
steps:
- checkout
- run_yarn

- run:
name: Build Docker container for Android RNTester App
command: |
source ~/.bashrc
nvm i node
npm i -g yarn
echo y | npx envinfo@latest
yarn run docker-setup-android
yarn run docker-build-android
name: Generate artifacts for Maven
command: ./gradlew :ReactAndroid:installArchives

- run:
name: Assemble RNTester
command: ./gradlew :packages:rn-tester:android:app:assembleDebug

# -------------------------
# JOBS: Test iOS Template
Expand Down Expand Up @@ -645,6 +641,40 @@ jobs:
-scheme $PROJECT_NAME \
-sdk iphonesimulator

# -------------------------
# JOBS: Test iOS RNTester
# -------------------------
test_ios_rntester:
executor: reactnativeios
parameters:
use_hermes:
type: boolean
default: false
steps:
- checkout
- run_yarn

- when:
condition: << parameters.use_hermes >>
steps:
- run:
name: Set USE_HERMES=1
command: echo "export USE_HERMES=1" >> $BASH_ENV

- run:
name: Install CocoaPods dependencies
command: |
rm -rf packages/rn-tester/Pods
cd packages/rn-tester && bundle exec pod install

- run:
name: Build RNTester
command: |
xcodebuild build \
-workspace packages/rn-tester/RNTesterPods.xcworkspace \
-scheme RNTester \
-sdk iphonesimulator

# -------------------------
# JOBS: Windows
# -------------------------
Expand Down Expand Up @@ -890,11 +920,6 @@ workflows:
- build_npm_package:
# Build a release package on every untagged commit, but do not publish to npm.
publish_npm_args: --dry-run
filters:
branches:
only:
- main
- /^pull\/.*$/
- test_js:
run_disabled_tests: false
filters:
Expand All @@ -904,19 +929,34 @@ workflows:
run_disabled_tests: false
filters:
branches:
# [macOS] disable this test which is redundant to Azure Devops test and it requires a CCI plan with resource-class:large.
ignore: /.*/
ignore: gh-pages
- test_android_template:
requires:
- build_npm_package
filters:
branches:
# [macOS] disable this test which is redundant to Azure Devops test and it requires a CCI plan with resource-class:large.
ignore: /.*/
ignore: gh-pages
- test_android_rntester:
filters:
branches:
ignore: gh-pages
- test_ios_template:
requires:
- build_npm_package
filters:
branches:
ignore: gh-pages
- test_ios_rntester:
name: test_ios_rntester_hermes
use_hermes: true
filters:
branches:
ignore: gh-pages
- test_ios_rntester:
name: test_ios_rntester_jsc
filters:
branches:
ignore: gh-pages
- test_ios:
name: test_ios_unit_jsc
run_unit_tests: true
Expand All @@ -941,25 +981,16 @@ workflows:
# use_hermes: true
# use_frameworks: true
# run_unit_tests: true
# [macOS] Github#949 Disable this failing test
# - test_js:
# name: test_js_prev_lts
# executor: nodeprevlts
# filters:
# branches:
# ignore: gh-pages
- test_docker:
- test_js:
name: test_js_prev_lts
executor: nodeprevlts
filters:
branches:
# [macOS] disable this test which is redundant to Azure Devops test and in the fork it fails because of Microsoft's V8 upgrade to Android
ignore: /.*/
ignore: gh-pages
- test_windows:
filters:
branches:
# [macOS disable this test which requires a CCI plan.
# ignore: gh-pages
ignore: /.*/
# macOS]
ignore: gh-pages
run_disabled_tests: false

# This workflow should only be triggered by release script
Expand Down Expand Up @@ -1009,25 +1040,24 @@ workflows:

# Gather coverage
- js_coverage:
# [macOS disable this test, it fails in the fork due to not being set up for coveralls
filters:
branches:
ignore: /.*/
# macOS]
ignore: gh-pages

nightly:
unless: << pipeline.parameters.run_package_release_workflow_only >>
triggers:
- schedule:
cron: "0 20 * * *"
filters:
branches:
# [macOS disable this release. We never want to release anything from this fork via CCI.
# [TODO(macOS GH#774): disable this release. We never want to release anything from this fork via CCI.
ignore: /.*/
# only:
# - main
# macOS]
# ]TODO(macOS GH#774)
jobs:
- nightly_job

- build_npm_package:
publish_npm_args: --nightly
publish_npm_args: --nightly
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ untyped-import
untyped-type-import

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

[version]
^0.170.0
^0.171.0
15 changes: 7 additions & 8 deletions .flowconfig.macos
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[ignore]
; [macOS]
; We fork some components by platform
; We fork some components by platform [macOS]
.*/*[.]ios.js
.*/*[.]android.js

Expand All @@ -13,7 +12,7 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; [macOS Ignore metro.config.js
; [macOS] Ignore metro.config.js
<PROJECT_ROOT>/metro.config.js

; Flow doesn't support platforms
Expand All @@ -39,8 +38,11 @@ emoji=true

exact_by_default=true

format.bracket_spacing=false

module.file_ext=.js
module.file_ext=.json
; [macOS]
module.file_ext=.macos.js

munge_underscores=true
Expand All @@ -55,19 +57,16 @@ suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty

experimental.abstract_locations=true

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
deprecated-type=error
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
Expand All @@ -79,4 +78,4 @@ untyped-import
untyped-type-import

[version]
^0.170.0
^0.171.0
2 changes: 1 addition & 1 deletion BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ rn_xplat_cxx_library2(
"//fbobjc/Libraries/FBQPLMetadataProviders/...",
"//fbobjc/Libraries/FBReactKit/...",
"//fbobjc/Libraries/FBiOSSecurityUtils/...",
"//fbobjc/Libraries/RCTPrerendering/...",
"//fbobjc/VendorLib/react-native-maps:react-native-maps",
"//xplat/js:",
"//xplat/js/react-native-github/React/...",
Expand Down Expand Up @@ -723,7 +724,6 @@ rn_library(
"//xplat/js:node_modules__abort_19controller",
"//xplat/js:node_modules__anser",
"//xplat/js:node_modules__base64_19js",
"//xplat/js:node_modules__deprecated_19react_19native_19prop_19types",
"//xplat/js:node_modules__event_19target_19shim",
"//xplat/js:node_modules__invariant",
"//xplat/js:node_modules__nullthrows",
Expand Down
12 changes: 12 additions & 0 deletions Libraries/Animated/NativeAnimatedHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ const API = {
NativeAnimatedModule.createAnimatedNode(tag, config),
);
},
updateAnimatedNodeConfig: function (
tag: number,
config: AnimatedNodeConfig,
): void {
invariant(NativeAnimatedModule, 'Native animated module is not available');
if (typeof NativeAnimatedModule.updateAnimatedNodeConfig === 'function') {
API.queueOperation(() =>
// $FlowIgnore[not-a-function] - checked above
NativeAnimatedModule.updateAnimatedNodeConfig(tag, config),
);
}
},
startListeningToAnimatedNodeValue: function (tag: number) {
invariant(NativeAnimatedModule, 'Native animated module is not available');
API.queueOperation(() =>
Expand Down
1 change: 1 addition & 0 deletions Libraries/Animated/NativeAnimatedModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface Spec extends TurboModule {
+startOperationBatch: () => void;
+finishOperationBatch: () => void;
+createAnimatedNode: (tag: number, config: AnimatedNodeConfig) => void;
+updateAnimatedNodeConfig?: (tag: number, config: AnimatedNodeConfig) => void;
+getValue: (tag: number, saveValueCallback: SaveValueCallback) => void;
+startListeningToAnimatedNodeValue: (tag: number) => void;
+stopListeningToAnimatedNodeValue: (tag: number) => void;
Expand Down
1 change: 1 addition & 0 deletions Libraries/Animated/NativeAnimatedTurboModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface Spec extends TurboModule {
+startOperationBatch: () => void;
+finishOperationBatch: () => void;
+createAnimatedNode: (tag: number, config: AnimatedNodeConfig) => void;
+updateAnimatedNodeConfig?: (tag: number, config: AnimatedNodeConfig) => void;
+getValue: (tag: number, saveValueCallback: SaveValueCallback) => void;
+startListeningToAnimatedNodeValue: (tag: number) => void;
+stopListeningToAnimatedNodeValue: (tag: number) => void;
Expand Down
Loading