Skip to content

Commit a6cbee6

Browse files
author
Adam Gleitman
committed
Merge branch 'main' into 0.72-merge-monorepo
2 parents d16b508 + f1160c0 commit a6cbee6

File tree

7 files changed

+49
-31
lines changed

7 files changed

+49
-31
lines changed

.ado/apple-integration.yml

+11
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ jobs:
7474
cat package.json | jq .devDependencies
7575
displayName: Modify example app dependencies
7676
workingDirectory: react-native-test-app/example
77+
- template: templates/verdaccio-init.yml
78+
- bash: |
79+
npx beachball publish --branch origin/$(System.PullRequest.TargetBranch) --no-push --registry http://localhost:4873 --yes --access public
80+
displayName: Publish beachball packages to verdaccio
81+
- bash: |
82+
cat .yarnrc.yml | sed 's_^npmRegistryServer: ".*"$_npmRegistryServer: "http://localhost:4873"_' > .yarnrc.yml.copy
83+
rm .yarnrc.yml
84+
mv .yarnrc.yml.copy .yarnrc.yml
85+
echo -e '\nunsafeHttpWhitelist: ["localhost"]' >> .yarnrc.yml
86+
displayName: Point react-native-test-app registry to verdaccio server
87+
workingDirectory: react-native-test-app
7788
- bash: |
7889
yarn --no-immutable
7990
displayName: Install npm dependencies

.ado/templates/react-native-macos-init.yml

+2-24
Original file line numberDiff line numberDiff line change
@@ -31,36 +31,14 @@ steps:
3131
cd packages/react-native-macos-init
3232
yarn build
3333
34-
- task: CmdLine@2
35-
displayName: Launch test npm server (verdaccio)
36-
inputs:
37-
script: |
38-
npx verdaccio --config ./.ado/verdaccio/config.yaml &
39-
40-
- script: |
41-
npm set registry http://localhost:4873
42-
displayName: Modify default npm config to point to local verdaccio server
43-
44-
- script: |
45-
node .ado/waitForVerdaccio.js
46-
displayName: Wait for verdaccio server to boot
47-
48-
- script: |
49-
node .ado/npmAddUser.js user pass [email protected] http://localhost:4873
50-
displayName: Add npm user to verdaccio
34+
- template: verdaccio-init.yml
5135

5236
- task: CmdLine@2
5337
displayName: Set package version
5438
inputs:
5539
script: node scripts/set-rn-version.js -b dry-run -v 1000.0.0
5640

57-
- script: |
58-
npm publish --registry http://localhost:4873
59-
displayName: Publish react-native-macos to verdaccio
60-
61-
- script: |
62-
npx beachball publish --branch origin/$(System.PullRequest.TargetBranch) --no-push --registry http://localhost:4873 --yes --access public
63-
displayName: Publish react-native-macos-init to verdaccio
41+
- template: verdaccio-publish.yml
6442

6543
- task: CmdLine@2
6644
displayName: Init new project

.ado/templates/verdaccio-init.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Initializes a verdaccio server.
2+
3+
steps:
4+
- task: CmdLine@2
5+
displayName: Launch test npm server (verdaccio)
6+
inputs:
7+
script: |
8+
npx verdaccio --config ./.ado/verdaccio/config.yaml &
9+
10+
- script: |
11+
npm set registry http://localhost:4873
12+
displayName: Modify default npm config to point to local verdaccio server
13+
14+
- script: |
15+
node .ado/waitForVerdaccio.js
16+
displayName: Wait for verdaccio server to boot
17+
18+
- script: |
19+
node .ado/npmAddUser.js user pass [email protected] http://localhost:4873
20+
displayName: Add npm user to verdaccio

.ado/templates/verdaccio-publish.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Publishes local packages to our verdaccio server.
2+
3+
steps:
4+
- script: |
5+
npm publish --registry http://localhost:4873
6+
displayName: Publish react-native-macos to verdaccio
7+
8+
- script: |
9+
npx beachball publish --branch origin/$(System.PullRequest.TargetBranch) --no-push --registry http://localhost:4873 --yes --access public
10+
displayName: Publish react-native-macos-init to verdaccio

packages/react-native/React/Base/RCTTouchHandler.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,10 @@ - (void)_updateReactTouchAtIndex:(NSInteger)touchIndex
229229
NSEvent *nativeTouch = _nativeTouches[touchIndex];
230230
CGPoint location = nativeTouch.locationInWindow;
231231
RCTAssert(_cachedRootView, @"We were unable to find a root view for the touch");
232-
CGPoint rootViewLocation = [_cachedRootView.window.contentView convertPoint:location toView:_cachedRootView];
232+
CGPoint rootViewLocation = [_cachedRootView convertPoint:location fromView:nil];
233+
233234
NSView *touchView = _touchViews[touchIndex];
234235
CGPoint touchViewLocation = [touchView convertPoint:location fromView:nil];
235-
// JavaScript expects coordinates to have (0,0) at top left, unlike the macOS coordinate system
236-
rootViewLocation.y = NSHeight([[_cachedRootView window] frame]) - rootViewLocation.y;
237236
#endif // macOS]
238237

239238
NSMutableDictionary *reactTouch = _reactTouches[touchIndex];

packages/react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"@react-native/gradle-plugin": "^0.72.5",
8787
"@react-native/js-polyfills": "^0.72.1",
8888
"@react-native/normalize-colors": "^0.72.0",
89-
"@react-native-mac/virtualized-lists": "^0.0.1",
89+
"@react-native-mac/virtualized-lists": "^0.1.0",
9090
"abort-controller": "^3.0.0",
9191
"anser": "^1.4.9",
9292
"base64-js": "^1.1.2",

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -5070,9 +5070,9 @@ fast-levenshtein@^2.0.6:
50705070
integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==
50715071

50725072
fast-xml-parser@^4.0.12:
5073-
version "4.1.2"
5074-
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.1.2.tgz#5a98c18238d28a57bbdfa9fe4cda01211fff8f4a"
5075-
integrity sha512-CDYeykkle1LiA/uqQyNwYpFbyF6Axec6YapmpUP+/RHWIoR1zKjocdvNaTsxCxZzQ6v9MLXaSYm9Qq0thv0DHg==
5073+
version "4.2.7"
5074+
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.2.7.tgz#871f2ca299dc4334b29f8da3658c164e68395167"
5075+
integrity sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==
50765076
dependencies:
50775077
strnum "^1.0.5"
50785078

0 commit comments

Comments
 (0)