Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: true
blank_issues_enabled: false
contact_links:
- name: Feature Request 💡
url: https://github.com/blazejkustra/react-native-backgrounds/discussions/new?category=ideas
url: https://github.com/blazejkustra/react-native-effects/discussions/new?category=ideas
about: If you have a feature request, please create a new discussion on GitHub.
- name: Discussions on GitHub 💬
url: https://github.com/blazejkustra/react-native-backgrounds/discussions
url: https://github.com/blazejkustra/react-native-effects/discussions
about: If this library works as promised but you need help, please ask questions there.
101 changes: 0 additions & 101 deletions .github/ISSUE_TEMPLATE/new-background-request.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -36,7 +36,7 @@ jobs:

# steps:
# - name: Checkout
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

# - name: Setup
# uses: ./.github/actions/setup
Expand All @@ -49,24 +49,24 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup

- name: Build package
run: yarn prepare

build-web:
runs-on: ubuntu-latest
# build-web:
# runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# steps:
# - name: Checkout
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup
# - name: Setup
# uses: ./.github/actions/setup

- name: Build example for Web
run: |
yarn example expo export --platform web
# - name: Build example for Web
# run: |
# yarn example expo export --platform web
19 changes: 19 additions & 0 deletions .yarn/patches/metro-npm-0.83.2-d09f48ca84.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/src/node-haste/DependencyGraph.js b/src/node-haste/DependencyGraph.js
index bd42485a8a6647757c0f5b2f2c4a5e659125fcdd..417de6c997067b4b1c686c35fe5007ba199b3897 100644
--- a/src/node-haste/DependencyGraph.js
+++ b/src/node-haste/DependencyGraph.js
@@ -186,6 +186,14 @@ class DependencyGraph extends _events.default {
return (0, _nullthrows.default)(this._fileSystem).getAllFiles();
}
async getOrComputeSha1(mixedPath) {
+ if (mixedPath.includes("react-native-worklets/.worklets/")) {
+ const createHash = require("crypto").createHash;
+ return {
+ sha1: createHash("sha1")
+ .update(performance.now().toString())
+ .digest("hex"),
+ };
+ }
const result = await this._fileSystem.getOrComputeSha1(mixedPath);
if (!result || !result.sha1) {
throw new Error(`Failed to get the SHA-1 for: ${mixedPath}.
36 changes: 36 additions & 0 deletions .yarn/patches/metro-runtime-npm-0.83.2-c614bbd3b9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/src/modules/HMRClient.js b/src/modules/HMRClient.js
index 3e2652d7a43ff0d2ab3ad7556ecf79f88f7a6edb..47de354ddfd3858187048e84b5a62b412a28c640 100644
--- a/src/modules/HMRClient.js
+++ b/src/modules/HMRClient.js
@@ -2,6 +2,9 @@

const EventEmitter = require("./vendor/eventemitter3");
const inject = ({ module: [id, code], sourceURL }) => {
+ if (global.__workletsModuleProxy?.propagateModuleUpdate) {
+ global.__workletsModuleProxy.propagateModuleUpdate(code, sourceURL);
+ }
if (global.globalEvalWithSourceUrl) {
global.globalEvalWithSourceUrl(code, sourceURL);
} else {
diff --git a/src/polyfills/require.js b/src/polyfills/require.js
index 367cabb90c6e016dc024d4f7fadfee6c3a52ca32..c6399316700b0295441a42ba19d29b171e54015b 100644
--- a/src/polyfills/require.js
+++ b/src/polyfills/require.js
@@ -334,14 +334,14 @@ function unknownModuleError(id) {
}
return Error(message);
}
+metroRequire.getModules = () => {
+ return modules;
+};
if (__DEV__) {
metroRequire.Systrace = {
beginEvent: () => {},
endEvent: () => {},
};
- metroRequire.getModules = () => {
- return modules;
- };
var createHotReloadingObject = function () {
const hot = {
_acceptCallback: null,
Loading
Loading