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

Artem/master merge #2

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8411ba0
fix(android): Fix bridgeless mode support (#3352)
Kudo Mar 21, 2024
5da785d
chore(release): 13.8.2 [skip ci]
semantic-release-bot Mar 21, 2024
b989bd6
chore: Bump example app to 0.73 and use babel to build (#3347)
Titozzz Mar 22, 2024
ab420a0
fix: issue on bridgeless when accessing ReactContext (preparing RN74)…
alanjhughes Mar 28, 2024
0a60bf7
chore(release): 13.8.3 [skip ci]
semantic-release-bot Mar 28, 2024
81fe8e0
fix: Remove log statement that breaks react-native-community autolink…
brentvatne Mar 28, 2024
74de1f4
chore(release): 13.8.4 [skip ci]
semantic-release-bot Mar 28, 2024
2379ad0
fix(android): messaging regression for multiple webviews (#3394)
Kudo Apr 15, 2024
92b542d
chore(release): 13.8.5 [skip ci]
semantic-release-bot Apr 15, 2024
7e391e9
fix: typings broken after moving to babel build from tsc (#3378)
netmaxt3r Apr 17, 2024
7420ed8
chore(release): 13.8.6 [skip ci]
semantic-release-bot Apr 17, 2024
b9e74d6
fix(ios): Allow keyboard accessory view to be toggled after initializ…
amanharwara Apr 29, 2024
7119160
chore(release): 13.8.7 [skip ci]
semantic-release-bot Apr 29, 2024
dd7fb83
feat: Add visionOS support (#3373)
Saadnajmi May 7, 2024
542a997
chore: Use latest react-native-cookies/cookies name in Guide.md (#3423)
grahamplace May 7, 2024
7fb5c3f
fix(macos): Fix source prop for Fabric (#3404)
shwanton May 7, 2024
0dd2bb5
chore(release): 13.9.0 [skip ci]
semantic-release-bot May 7, 2024
6cd4697
fix(fabric, apple): Use correct header dir name for RCTFabricComponen…
shwanton May 7, 2024
c007ba3
chore(release): 13.9.1 [skip ci]
semantic-release-bot May 7, 2024
8bc122d
chore: bump `react-native-test-app` to 3.5.9 (#3430)
tido64 May 7, 2024
d843539
feat(windows): Adds support for compiling Windows module for WinAppSD…
rozele May 7, 2024
fab94f1
chore(release): 13.10.0 [skip ci]
semantic-release-bot May 7, 2024
5e8159f
chore: bump `react-native-test-app` to 3.7.2 (#3433)
tido64 May 8, 2024
ccefcf1
fix(android): Handle null value in setMenuCustomItems method (#3375)
m0ai May 11, 2024
81a8c1b
chore(release): 13.10.1 [skip ci]
semantic-release-bot May 11, 2024
d5749e0
fix(iOS): Replace unsupported nullish coalescing operator for older i…
kowoohyuk May 11, 2024
4e1ede4
chore(release): 13.10.2 [skip ci]
semantic-release-bot May 11, 2024
3b2dd46
Merge branch 'master' of github.com:react-native-webview/react-native…
artemlitch May 15, 2024
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
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lib/
babel.config.js
babel.config.js
node_modules
92 changes: 7 additions & 85 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,93 +1,15 @@
module.exports = {
// Airbnb is the base, prettier is here so that eslint doesn't conflict with prettier
extends: ['airbnb', 'prettier', 'prettier/react', 'plugin:react-hooks/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['react', 'react-native', 'import', '@typescript-eslint'],
extends: ['@react-native', 'prettier'],
rules: {
'no-console': 'off',
// Lines will be broken before binary operators
'operator-linebreak': ['error', 'before'],
// Allow imports from dev and peer dependencies
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: true, peerDependencies: true },
],
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],
// This rule doesn't play nice with Prettier
'react/jsx-one-expression-per-line': 'off',
// This rule doesn't play nice with Prettier
'react/jsx-wrap-multilines': 'off',
// Remove this rule because we only destructure props, but never state
'react/destructuring-assignment': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'react/static-property-placement': 'off',
'react/state-in-constructor': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': [
'error',
{
default: 'array',
},
],
'@typescript-eslint/generic-type-naming': ['error', '^[a-zA-Z]+$'],
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/consistent-type-assertions': [
'error',
{
assertionStyle: 'as',
},
],
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/triple-slash-reference': [
'error',
{ path: 'never', types: 'never', lib: 'never' },
],
'@typescript-eslint/no-type-alias': [
'prettier/prettier': [
'error',
{
allowAliases: 'always',
allowCallbacks: 'always',
allowMappedTypes: 'always',
quoteProps: 'consistent',
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{ ignoreRestSiblings: true },
],
'@typescript-eslint/consistent-type-definitions': [
'error',
'interface',
],
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
},
settings: {
'import/resolver': {
node: {
extensions: [
'.js',
'.android.js',
'.ios.js',
'.jsx',
'.android.jsx',
'.ios.jsx',
'.tsx',
'.ts',
'.android.tsx',
'.android.ts',
'.ios.tsx',
'.ios.ts',
],
},
},
},
};
10 changes: 5 additions & 5 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 17
- name: Install npm dependencies
run: yarn --frozen-lockfile
shell: bash
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/detox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ jobs:
name: 'Running tests'
runs-on: 'macOS-latest'
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 20
cache: 'yarn'
- name: Setup - Install Yarn
run: YARN_GPG=NO curl -o- -L https://yarnpkg.com/install.sh | bash
- name: Setup - Install NPM Dependencies
run: yarn --frozen-lockfile
- name: Setup - Install CocoaPods CLI
run: sudo gem install cocoapods -v 1.8.4
- name: Run tests
run: yarn ci
8 changes: 4 additions & 4 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'
- name: Install npm dependencies
run: yarn --frozen-lockfile
Expand All @@ -25,7 +25,7 @@ jobs:
working-directory: example/ios
- name: Build iOS test app
run: |
device_name='iPhone 13'
device_name='iPhone 15'
device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (")
re='\(([-0-9A-Fa-f]+)\)'
[[ $device =~ $re ]] || exit 1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2.5.1
uses: actions/setup-node@v4
with:
node-version: 16
- name: Cache /node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
node-version: 20
cache: 'yarn'
- name: Install npm dependencies
run: yarn --frozen-lockfile
- name: Install macOS dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: windows-2022

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout Code

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '^14'
node-version: '20'
cache: 'yarn'

- name: Setup MSBuild
Expand Down
9 changes: 4 additions & 5 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// https://prettier.io/docs/en/options.html

module.exports = {
// Enables semicolons at the end of statements
semi: true,
// Formats strings with single quotes ('') instead of quotes ("")
quoteProps: 'consistent',
singleQuote: true,
// Adds a trailing comma at the end of all lists (including function arguments)
trailingComma: 'all',
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
};
Loading
Loading