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

Update RNW to 18.7 #6

Merged
merged 92 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
9d86760
Bump markdown-it from 12.0.4 to 12.3.2
dependabot[bot] Jan 12, 2022
aaefb1b
Bump follow-redirects from 1.13.1 to 1.14.7
dependabot[bot] Jan 15, 2022
e217f73
Bump nanoid from 3.1.28 to 3.2.0
dependabot[bot] Jan 22, 2022
438b7b7
[fix] Linking.openURL opens 'tel' links in current tab.
youngvform Sep 11, 2021
d21c401
[fix] Avoid edge case where focus jumps between TextInputs
Nov 8, 2021
944b45c
[fix] Switch support for custom colors when disabled
makkarMeenu Nov 9, 2021
79707ce
[fix] Text numberOfLines=1 on Safari"
parasharrajat Jan 10, 2022
17241db
[fix] AppState.removeEventListener deprecation
necolas Feb 18, 2022
7ec2489
[fix] inverted VirtualizedList supports wheel events
staltz Feb 16, 2022
da80ede
0.17.6
necolas Feb 18, 2022
ea87af2
AppState docs without deprecated API
necolas Feb 22, 2022
c0e3409
Fix 'yarn lint' issue
DavidRieman Feb 19, 2022
aaa58d7
Add SectionList example page
DavidRieman Feb 25, 2022
9ffda21
Add FlatList examples
DavidRieman Feb 19, 2022
8cc79ea
[fix] TextInput numberOfLines for text with line breaks
necolas Mar 1, 2022
dc9ecfb
0.17.7
necolas Mar 1, 2022
c113e46
Fix canUseDOM imports
necolas Feb 24, 2022
9583155
Remove unused benchmarks and libraries
necolas Feb 24, 2022
174ebb3
[change] Remove deprecated accessibility APIs
necolas Feb 24, 2022
b27c982
[change] StyleSheet rewrite
necolas Feb 28, 2022
9b0c119
[change] Remove jest preset
necolas Mar 1, 2022
314d78c
Update packages and benchmarks
necolas Mar 1, 2022
5cab098
Update localization docs and examples
necolas Mar 1, 2022
e7a99f5
[change] Show focus ring on CheckBox and Switch
flip-it Feb 25, 2022
da1a75a
[change] Refactor localization APIs
necolas Mar 18, 2022
edec979
[change] Update FlatList, VirtualizedList, and SectionList vendor mod…
DavidRieman Feb 25, 2022
3326aab
Update copyright headers
necolas Mar 22, 2022
8034a57
Minor fixes
necolas Mar 23, 2022
c4223a6
Fix docs URL for ReactNativeBase
sawa-zen May 5, 2022
ffd300e
[fix] Linking.openURL supports 'target' value
avanwinkle Apr 12, 2022
ae2ee87
Bump semver-regex from 3.1.3 to 3.1.4
dependabot[bot] Jun 3, 2022
094bd0e
[fix] Prevent href navigation for disabled Pressables
rnike Jun 8, 2022
cb8381a
Update docs for 0.18 release
necolas Jun 10, 2022
91fc3c7
[fix] Encode URL in background-image CSS property
matias-la May 11, 2022
1bb816f
Bump cross-fetch from 3.0.6 to 3.1.5
dependabot[bot] Jun 10, 2022
d3bdbcd
Bump ws from 7.4.3 to 7.4.6
dependabot[bot] Jun 10, 2022
9628dcb
Bump ejs from 3.1.6 to 3.1.8
dependabot[bot] Jun 10, 2022
ecb6dd7
Bump follow-redirects from 1.14.7 to 1.15.1
dependabot[bot] Jun 10, 2022
7095118
0.18.0
necolas Jun 10, 2022
1cc95da
[fix] Inline style property order
necolas Jun 14, 2022
0a0bb5d
Revert "[fix] Encode URL in background-image CSS property"
necolas Jun 14, 2022
fa10c75
Update npm publish script with OTP support
necolas Jun 14, 2022
c00b5e4
0.18.1
necolas Jun 14, 2022
2be582b
Update docs for jest setup
necolas Jun 27, 2022
43b60d1
Add styles to examples SSR
yuxizhe Jun 25, 2022
11fcf77
Add README link to examples sandbox
necolas Jun 27, 2022
5258ae4
Fix pointerEvents example for View
necolas Jun 27, 2022
d9fd6a9
[fix] Modal should pass through View props
necolas Jun 27, 2022
09ec7b6
0.18.2
necolas Jun 27, 2022
ae6ddec
Add codesandbox config to examples
necolas Jun 28, 2022
689f5a3
Add codesandbox CI integration for PRs
yuxizhe Jun 28, 2022
7f85495
[fix] Sandbox config node version
yuxizhe Jun 28, 2022
379da30
Regularly test against next builds of React
yuxizhe Jun 28, 2022
59af091
[fix] Prevent style recalculation on pageload
natew Jul 2, 2022
d31a8a1
0.18.3
necolas Jul 2, 2022
f810954
Reorganize monorepo structure
necolas Jul 1, 2022
b704844
Build react-native-web using @babel/runtime
necolas Jul 1, 2022
aee652f
Reorganize README and LICENSE files
necolas Jul 1, 2022
50e267b
Publish only updates react-native-web packages
necolas Jul 1, 2022
31f2e66
Change development scripts
necolas Jul 2, 2022
e9badc3
Use npm to manage monorepo
necolas Jul 2, 2022
0748616
Fix workflows and monorepo deps
necolas Jul 2, 2022
20afd12
Use GitHub issue forms
necolas Jul 3, 2022
e9f9463
0.18.4
necolas Jul 3, 2022
abad4b0
Fix package publishing script
necolas Jul 3, 2022
341a9fc
Update babel dependencies
necolas Jul 3, 2022
98dc30d
Update jest dependencies
necolas Jul 3, 2022
b6f844d
Update eslint dependencies
necolas Jul 3, 2022
b7dd6b6
Update babel-plugin-react-native-web dependencies
necolas Jul 3, 2022
9fce067
Update benchmarks dependencies
necolas Jul 4, 2022
f591a74
Update react-native-web dependencies
necolas Jul 4, 2022
c8f6db8
Update react-native-web-docs dependencies
necolas Jul 4, 2022
174b8f5
Update prettier and reformat source code
necolas Jul 4, 2022
3f04120
Update lint-staged and husky
necolas Jul 4, 2022
0e183ed
Fix npm command in react-integration workflow
necolas Jul 4, 2022
1aa84d5
Misc dependency updates
necolas Jul 4, 2022
e027829
Reduce babel junk in built files
necolas Jul 5, 2022
5c1b5cf
[fix] Appearance API update
gksander Jul 6, 2022
511e553
0.18.5
necolas Jul 6, 2022
80ef32f
[fix] ScrollView support for 'centerContent' prop
nandorojo Jul 6, 2022
06c14c4
Update github issue template
necolas Jul 6, 2022
80a72c3
0.18.6
necolas Jul 6, 2022
8c365d9
Replace fbjs canUseDom with inline module
crathor Jul 8, 2022
07feddf
Replace fbjs performanceNow with performance.now
kyletsang Jul 8, 2022
4a9bea2
[fix] Pressable prevent longpress contextmenu on Windows
yuxizhe Jun 28, 2022
32a4bf8
[fix] Improve Flow types of StyleSheet.create
ToyboxZach Jul 12, 2022
bbffe86
ResponderTouchHistoryStore into instanciated class
zarubond Jan 3, 2022
cc9c9f1
Update react peer dependency in react-native-web
brentvatne Jul 19, 2022
bac3651
0.18.7
necolas Jul 19, 2022
3fc40bd
Fix README examples app url
necolas Jul 19, 2022
5057b27
Merge remote-tracking branch 'upstream/master'
roryabraham Aug 6, 2022
1a362eb
Fix bad merge
roryabraham Aug 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"packages": ["packages/react-native-web", "packages/babel-plugin-react-native-web"],
"buildCommand": "build",
"sandboxes": ["/packages/react-native-web-examples/"],
"node": "16"
}
17 changes: 0 additions & 17 deletions .flowconfig

This file was deleted.

84 changes: 31 additions & 53 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,97 +14,79 @@ Fork, then clone the repo:
git clone https://github.com/your-username/react-native-web.git
```

Install dependencies (requires [yarn](https://yarnpkg.com/en/docs/install)):
Install dependencies (requires Node.js >= 16.0):

```
yarn
npm install
```

## Automated tests
## Build

To run the linter:
Build a specific package:

```
yarn lint
npm run build -w <package-name>
```

To run flow:
For example, this will build `react-native-web`:

```
yarn flow
npm run build -w react-native-web
```

To run the unit tests:
Build all packages that can be built:

```
yarn jest
npm run build
```

…in watch mode:
## Develop

```
yarn jest --watch
```

To run all these automated tests:
Develop a specific package:

```
yarn test
npm run dev -w <package-name>
```

## Compile and build

To compile the `react-native-web` source code:
For example, this command will watch and rebuild the `react-native-web` package:

```
yarn compile
npm run dev -w react-native-web
```

…in watch mode:
And this command will watch and rebuild the `react-native-web-examples` package:

```
yarn compile --watch
npm run dev -w react-native-web-examples
```

## Documentation
## Test

To run the documentation website:
Run the monorepo linter:

```
yarn docs
npm run lint
```

## Examples

To run the examples app:
Run the monorepo type checker:

```
yarn examples
npm run flow
```

When you're also making changes to the 'react-native-web' source files, run this command in another process:
Run the monorepo unit tests:

```
yarn compile --watch
npm run unit
```

## Benchmarks

To run the benchmarks locally:
Run all the automated tests:

```
yarn benchmarks
open ./packages/benchmarks/dist/index.html
npm run test
```

To develop against these benchmarks:

```
yarn compile --watch
yarn benchmarks --watch
```

### New Features
## New Features

Please open an issue with a proposal for a new feature or refactoring before starting on the work. We don't want you to waste your efforts on a pull request that we won't want to accept.

Expand All @@ -115,19 +97,15 @@ Please open an issue with a proposal for a new feature or refactoring before sta
1. Fork the repository and create your branch from `master`.
2. If you've added code that should be tested, add tests!
3. If you've changed APIs, update the documentation.
4. Ensure the tests pass (`yarn test`).
4. Ensure the tests pass (`npm run test`).

You should see a pre-commit hook run before each commit. If it does not, you may need to reset you Git hookspath:

```
git config --unset core.hookspath
```
You should see a pre-commit hook run before each commit.

You can now submit a pull request, referencing any issues it addresses.

Please try to keep your pull request focused in scope and avoid including unrelated commits.

After you have submitted your pull request, we'll try to get back to you as soon as possible. We may suggest some changes or improvements.
After you have submitted your pull request, it's recommended that **you** perform the first code review. We'll try to get back to you as soon as possible and may suggest changes.

Thank you for contributing!

Expand All @@ -136,11 +114,11 @@ Thank you for contributing!
To commit, publish, and push a final version:

```
yarn release <version>
npm run release -- <version> --opt=<opt-code>
```

Release candidates or versions that you'd like to publish to npm, but do not want to produce a commit and push it to GitHub:

```
yarn release <version> --skip-git
npm run release -- <version> --skip-git
```
52 changes: 0 additions & 52 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Bug report
description: File a bug report
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thank you for reporting an issue! Create a test case for your issue by forking this template https://codesandbox.io/s/6lx6ql1w5r
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Describe the issue
description: Please provide a concise description of what you're experiencing. Providing screenshots is also helpful.
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: Please provide a concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: Please describe the precise steps needed to reproduce the behavior.
placeholder: |
Mention package versions and environment (browser, etc)...
1. ...
2. ...
validations:
required: true
- type: input
attributes:
label: Test case
description: Please provide a link to a reduced test case that reproduces the issue.
placeholder: "https://codesandbox.io/s/6lx6ql1w5r"
validations:
required: true
- type: textarea
attributes:
label: Additional comments
description: You're welcome to provide additional context and proposed solutions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Feature request
description: If you have a suggestion…
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thank you for suggesting a feature!
- type: checkboxes
attributes:
label: Is there an existing request?
description: Please search open and closed issues to see if this request has already been made.
options:
- label: I have searched for this request
required: true
- type: textarea
attributes:
label: Describe the feature request
description: Please provide a concise description of the request, potential solutions, and addtional context.
validations:
required: true
20 changes: 20 additions & 0 deletions .github/workflows/react-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: react@next integration

on:
schedule:
# Run every Monday at 12:00 (see https://crontab.guru)
- cron: '0 12 * * 1'

jobs:
react-next:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm install
# Update react-native-web to use react@next
- run: npm install react@next react-dom@next -w react-native-web
# Run the unit tests
- run: npm run unit
Loading