Skip to content

Commit

Permalink
fix: proper handling of header events on Fabric and bumping examples …
Browse files Browse the repository at this point in the history
…to 0.72 (#1783)

- Fixing the way header events are dispatched in order to make it work on Fabric. Used the implementation analogous to how it is done for Screen events.
- Bumping examples to RN 0.72.0-rc.5
  • Loading branch information
WoLewicki authored Jun 14, 2023
1 parent ea240b4 commit c043a68
Show file tree
Hide file tree
Showing 115 changed files with 8,994 additions and 9,433 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android-build-test-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
cache: 'yarn'
cache-dependency-path: 'FabricTestExample/yarn.lock'
- name: Install node dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
cache: 'yarn'
cache-dependency-path: 'TestsExample/yarn.lock'
- name: Install node dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios-build-test-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: checkout
uses: actions/checkout@v2

- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
cache: 'yarn'
cache-dependency-path: 'FabricTestExample/yarn.lock'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
cache: 'yarn'
cache-dependency-path: 'TestsExample/yarn.lock'
- name: Install node dependencies
Expand All @@ -43,7 +43,7 @@ jobs:
id: remove_pods
name: Remove pods
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: rm -fr build Pods Podfile.lock
run: rm -fr build Pods Podfile.lock
- if: steps.remove_pods.outcome == 'success'
id: reinstall_pods
name: Reinstall pods
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
cache: 'yarn'
- name: Install node dependencies
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tv-os-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
cache: 'yarn'
cache-dependency-path: 'TVOSExample/yarn.lock'
- name: Install node dependencies
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion FabricExample/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
extends: '@react-native',
};
14 changes: 7 additions & 7 deletions FabricExample/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,15 @@ local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand All @@ -59,8 +55,12 @@ buck-out/
# Bundle artifact
*.jsbundle

# CocoaPods
# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# testing
/coverage
1 change: 0 additions & 1 deletion FabricExample/.node-version

This file was deleted.

1 change: 0 additions & 1 deletion FabricExample/.ruby-version

This file was deleted.

2 changes: 1 addition & 1 deletion FabricExample/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
4 changes: 2 additions & 2 deletions FabricExample/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby File.read(File.join(__dir__, '.ruby-version')).strip
ruby ">= 2.6.10"

gem 'cocoapods', '~> 1.11', '>= 1.11.3'
gem 'cocoapods', '~> 1.12'
98 changes: 0 additions & 98 deletions FabricExample/Gemfile.lock

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import 'react-native';
import React from 'react';
import App from '../App';

// Note: import explicitly to use the types shiped with jest.
import {it} from '@jest/globals';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

Expand Down
Loading

0 comments on commit c043a68

Please sign in to comment.