Skip to content

Commit

Permalink
Merge branch 'main' into @tomekzaw/jsqueue-quit-synchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Jan 13, 2025
2 parents 81d620e + 082dc45 commit f34c5e6
Show file tree
Hide file tree
Showing 175 changed files with 5,825 additions and 4,418 deletions.
92 changes: 0 additions & 92 deletions .github/workflows/monorepo-app-reanimated-build-check-action.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/monorepo-app-reanimated-build-check-nightly.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/npm-reanimated-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
build:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
PACKAGE_NAME: PLACEHOLDER # Will be reassigned later on.
steps:
Expand Down Expand Up @@ -87,7 +90,7 @@ jobs:
run: mv $PACKAGE_NAME ../../

- name: Publish npm package
run: npm publish $PACKAGE_NAME --tag nightly
run: npm publish $PACKAGE_NAME --tag nightly --provenance
if: ${{ inputs.publish_on_npm }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/reanimated-android-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install cpplint==1.6.1
pip install cmakelang==0.6.13
- name: Clear annotations
run: .github/workflows/helper/clear-annotations.sh

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reanimated-compatibility-check-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
{ version: '0.75', architecture: 'Fabric' },
{ version: '0.76', architecture: 'Paper' },
{ version: '0.76', architecture: 'Fabric' },
{ version: '0.77', architecture: 'Paper' },
{ version: '0.77', architecture: 'Fabric' },
]
fail-fast: false
env:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/reanimated-release-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Reanimated release checks
on:
pull_request:
branches:
- "[0-9]+.[0-9]+-stable"
- '[0-9]+.[0-9]+-stable'
push:
branches:
- "[0-9]+.[0-9]+-stable"
- '[0-9]+.[0-9]+-stable'
workflow_call:
workflow_dispatch:

Expand Down Expand Up @@ -50,11 +50,6 @@ jobs:
name: Example Typescript check and lint
uses: ./.github/workflows/example-typescript-check-and-lint.yml

monorepo_app_reanimated_build_check_nightly:
if: github.repository == 'software-mansion/react-native-reanimated'
name: Monorepo app Reanimated build check [Nightly]
uses: ./.github/workflows/monorepo-app-reanimated-build-check-nightly.yml

reanimated_android_validation:
if: github.repository == 'software-mansion/react-native-reanimated'
name: Reanimated Android validation
Expand Down Expand Up @@ -104,4 +99,3 @@ jobs:
if: github.repository == 'software-mansion/react-native-reanimated'
name: Yarn validation
uses: ./.github/workflows/yarn-validation.yml

73 changes: 73 additions & 0 deletions .yarn/patches/@shopify-flash-list-npm-1.7.2-2a363895ca.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
diff --git a/package.json b/package.json
index b30a5bacd99db50c5d09d7662f06bfbccca599a1..9915fa6b5d96243a00e16100da605e0f9596bf53 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"license": "MIT",
"homepage": "https://shopify.github.io/flash-list/",
"main": "dist/index.js",
+ "react-native": "src/index.ts",
"types": "dist/index.d.ts",
"scripts": {
"up": "bundle install && yarn fixture:rn:up && yarn e2e:up && yarn build",
diff --git a/src/FlashList.tsx b/src/FlashList.tsx
index 0e9f071a53d113e85f3099ccf239d1f3d06361b6..877896f778b4fa27977b1aed9b550e2880c11e79 100644
--- a/src/FlashList.tsx
+++ b/src/FlashList.tsx
@@ -4,6 +4,7 @@ import {
RefreshControl,
LayoutChangeEvent,
NativeSyntheticEvent,
+ ScrollViewComponent,
StyleSheet,
NativeScrollEvent,
} from "react-native";
@@ -842,6 +843,12 @@ class FlashList<T> extends React.PureComponent<
return this.rlvRef?.getScrollableNode?.() || null;
}

+ public getNativeScrollRef(): React.ElementRef<
+ typeof ScrollViewComponent
+ > | null {
+ return this.rlvRef?.getNativeScrollRef?.() || null;
+ }
+
/**
* Allows access to internal recyclerlistview. This is useful for enabling access to its public APIs.
* Warning: We may swap recyclerlistview for something else in the future. Use with caution.
diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java
index 4c9080790230cc75f48e4ee68c84df1080986bd6..29f81e03caed5c97401de153c53fe71c3cce9e10 100644
--- a/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java
+++ b/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java
@@ -11,10 +11,11 @@ package com.facebook.react.viewmanagers;

import android.view.View;
import androidx.annotation.Nullable;
+import com.facebook.react.uimanager.BaseViewManager;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
-import com.facebook.react.uimanager.BaseViewManagerInterface;
+import com.facebook.react.uimanager.LayoutShadowNode;

-public class AutoLayoutViewManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & AutoLayoutViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
+public class AutoLayoutViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & AutoLayoutViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
public AutoLayoutViewManagerDelegate(U viewManager) {
super(viewManager);
}
diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java
index 2b64af7d5ff936793bf027cba249f31777daba9f..4ba6e5fd815aeac1da56374c8c48a9fcd7f57061 100644
--- a/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java
+++ b/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java
@@ -11,10 +11,11 @@ package com.facebook.react.viewmanagers;

import android.view.View;
import androidx.annotation.Nullable;
+import com.facebook.react.uimanager.BaseViewManager;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
-import com.facebook.react.uimanager.BaseViewManagerInterface;
+import com.facebook.react.uimanager.LayoutShadowNode;

-public class CellContainerManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & CellContainerManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
+public class CellContainerManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & CellContainerManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
public CellContainerManagerDelegate(U viewManager) {
super(viewManager);
}
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
> Reanimated 3 is here! Check out our [documentation page](https://docs.swmansion.com/react-native-reanimated/) for more information
React Native Reanimated provides a more comprehensive,
low level abstraction for the Animated library API to be built
on top of and hence allow for much greater flexibility especially when it
comes to gesture based interactions.
low-level abstraction for the Animated library API on which to build,
allowing for much greater flexibility, especially when it comes to
gesture-based interactions.

### Nightly CI state

[![NPM Reanimated publish nightly](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-reanimated-publish-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-reanimated-publish-nightly.yml)
[![Reanimated compatibility check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/reanimated-compatibility-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/reanimated-compatibility-check-nightly.yml)
[![Monorepo app Reanimated build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/monorepo-app-reanimated-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/monorepo-app-reanimated-build-check-nightly.yml)
[![Static framework Reanimated build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/static-framework-reanimated-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/static-framework-reanimated-build-check-nightly.yml)
[![React Native nightly Reanimated build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/react-native-nightly-reanimated-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/react-native-nightly-reanimated-build-check-nightly.yml)
[![Expo DevClient build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/expo-devclient-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/expo-devclient-build-check-nightly.yml)
Expand Down
24 changes: 10 additions & 14 deletions apps/common-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
"@react-native-async-storage/async-storage": "*",
"@react-native-community/slider": "*",
"@react-native-masked-view/masked-view": "*",
"@react-native-picker/picker": "*",
"@react-navigation/bottom-tabs": "*",
"@react-navigation/native": "*",
"@react-navigation/native-stack": "*",
"@react-navigation/stack": "*",
"@shopify/flash-list": "*",
"@stylexjs/babel-plugin": "*",
"d3-shape": "*",
"react": "*",
"react-dom": "*",
Expand All @@ -32,16 +30,14 @@
"react-strict-dom": "*"
},
"devDependencies": {
"@react-native-async-storage/async-storage": "^1.24.0",
"@react-native-community/slider": "^4.5.5",
"@react-native-masked-view/masked-view": "^0.3.1",
"@react-native-picker/picker": "^2.9.0",
"@react-native-async-storage/async-storage": "2.1.0",
"@react-native-community/slider": "4.5.5",
"@react-native-masked-view/masked-view": "0.3.2",
"@react-navigation/bottom-tabs": "^7.0.0",
"@react-navigation/native": "^7.0.0",
"@react-navigation/native-stack": "^7.0.0",
"@react-navigation/stack": "^7.0.0",
"@shopify/flash-list": "^1.7.1",
"@stylexjs/babel-plugin": "^0.7.5",
"@shopify/flash-list": "patch:@shopify/flash-list@npm%3A1.7.2#~/.yarn/patches/@shopify-flash-list-npm-1.7.2-2a363895ca.patch",
"@tsconfig/react-native": "^3.0.0",
"@types/d3-shape": "^3.1.1",
"d3-shape": "^3.2.0",
Expand All @@ -50,13 +46,13 @@
"patch-package": "^8.0.0",
"prettier": "^3.3.3",
"react": "18.3.1",
"react-native": "^0.76.1",
"react-native-gesture-handler": "2.20.2",
"react-native-pager-view": "^6.4.1",
"react-native": "0.77.0-rc.6",
"react-native-gesture-handler": "2.22.0",
"react-native-pager-view": "6.6.1",
"react-native-reanimated": "workspace:*",
"react-native-safe-area-context": "^4.13.1",
"react-native-screens": "^4.0.0",
"react-native-svg": "^15.8.0",
"react-native-safe-area-context": "5.1.0",
"react-native-screens": "4.5.0",
"react-native-svg": "15.11.1",
"react-strict-dom": "0.0.27",
"typescript": "~5.3.0"
}
Expand Down
Loading

0 comments on commit f34c5e6

Please sign in to comment.