Граф коммитов

21354 Коммитов

Автор SHA1 Сообщение Дата
Eloy Durán d30beed6c3 Merge branch 'master' into fb63merge 2020-09-30 12:22:37 +02:00
Eloy Durán 4272792ea6 [rnm-init] Update minimum iOS deployment target 2020-09-30 11:36:11 +02:00
Eloy Durán 8116af9b0c [rnm-init] Fix pod reference 2020-09-30 10:49:59 +02:00
Eloy Durán b0bc0deef9 [ci] Skip Android tests in Apple PR on master 2020-09-29 22:50:25 +02:00
Eloy Durán 302d1cd04c Revert "[ci] Switch to experimental CocoaPods CDN"
This reverts commit 44a92f7f08.
2020-09-29 21:43:05 +02:00
Eloy Durán 44a92f7f08 [ci] Switch to experimental CocoaPods CDN 2020-09-29 19:18:38 +02:00
Eloy Durán e8f236667e [ci] Ignore metro config in e2e tests 2020-09-29 16:18:31 +02:00
Eloy Durán f9cc919c04 [ci] Only disable custom metro config in e2e test 2020-09-29 15:59:50 +02:00
Eloy Durán 7126b2e1fa Revert "[ci] Update metro config as per upstream"
This reverts commit b47ca570be.
2020-09-29 15:20:46 +02:00
Eloy Durán e53418e717 Revert "[ci] Ignore metro config in e2e tests"
This reverts commit 25f7006bc9.
2020-09-29 15:20:38 +02:00
Eloy Durán 25f7006bc9 [ci] Ignore metro config in e2e tests 2020-09-28 18:21:14 +02:00
Eloy Durán b47ca570be [ci] Update metro config as per upstream 2020-09-28 17:43:27 +02:00
Tom Underhill cfc858340c
Add macOS `secureTextEntry` prop support to `TextInput` (#612)
* Update scripts to publish react-native-macos-init

* Clean up merge markers

* Restored ios:macos RNTester parity except for InputAccessoryView.

* Revert "Restored ios:macos RNTester parity except for InputAccessoryView."

This reverts commit 5a67ae06b0.

* Remove unnecessary android builds and tar file upload.

* Prototype implementation of using NSSecureTextField when secureTextEntry prop is true.

* Moved useSecureTextField mapping to RCTSinglineTextInputView.
Add _useSecureTextField ivar.

Co-authored-by: React-Native Bot <53619745+rnbot@users.noreply.github.com>
2020-09-28 11:40:27 +02:00
Eloy Durán 25df611592 [circle] Fix config 2020-09-25 16:42:40 +02:00
Eloy Durán ee49861c87 Merge branch 'master' into fb63merge 2020-09-25 16:42:31 +02:00
Eloy Durán bce8ea32e9 [transform] Use iOS implementation for macOS 2020-09-25 14:49:18 +02:00
Eloy Durán 352e9be58f [PlatformExample] Fix examples on macOS 2020-09-24 19:43:25 +02:00
Eloy Durán 21c189d485 [Color] Rename alternating colors to match to assumptions 2020-09-24 19:15:17 +02:00
Eloy Durán 06dfa25e69 [test] Get macOS test bundle to build 2020-09-24 15:55:44 +02:00
Eloy Durán ac44cbdeb0 [test] Make green with macOS fork changes 2020-09-24 14:05:10 +02:00
Eloy Durán 5065f58e0f [PlatformColor] Duplicate iOS code for macOS
This is a naive version of this change, there should likely be some code sharing
happening between iOS and macOS.
2020-09-24 13:45:01 +02:00
Anandraj c5fa3de324
Adding the JS side config for the onFocusChange event on Android (#610)
* Adding the JS side config for the onFocusChange event on Android

* Adding "captured" event in the config

* Fixing the lint errors by adding trailing commas
2020-09-23 13:22:55 -07:00
Eloy Durán 397c921cc9 [flow] Get iOS checks green 2020-09-23 21:53:58 +02:00
Scott Kyle 4d8adf6065
Fix RedBoxes from accessing devSettings on invalid bridge (#614)
This fixes an issue where starting an app already in Chrome debug mode would result in a massive number of RedBoxes being queued up because `devSettings` was being accessed on an invalidated bridge.
2020-09-23 18:13:09 +02:00
Eloy Durán 5c2cfbd55d [flow] Remove deprecated rule in newer Flow
759970c1b6
2020-09-23 16:30:30 +02:00
Eloy Durán 3b2124f74d Merge branch 'master' into fb63merge 2020-09-23 12:14:24 +02:00
Eloy Durán 8f7cfb4c7c [CODEOWNERS] Add myself 2020-09-23 12:00:59 +02:00
pavelchern a7c9808756
VirtualizedList accounts for components other than ScrollView and does not throw on _scrollRef.scrollTo calls (#532)
* VirtualizedList accounts for components other than ScrollView and does not throw on _scrollRef.scrollTo calls

According to the absolutely right comment
* Note that `this._scrollRef` might not be a `ScrollView`
`this._scrollRef.scrollTo` ca not always be called directly. 
This was already fixed in the https://github.com/facebook/react-native/blob/master/Libraries/Lists/VirtualizedList.js#L373 
Adding safeguard-checks for all the places where `_scrollRef.scrollTo()` is called

* Remove the whitespaces
2020-09-23 11:01:10 +02:00
Eloy Durán f6c591bed4 Get RNTester to launch 2020-09-22 23:31:25 +02:00
Zihan Chen (MSFT) 502942dddf
Port REACT_MODULE() from react-native-windows to react-native-macos (3/4) (#608)
* Update TurboModulesProvider.cpp

* Move unimplemented functions to cpp

* Move MacOSReactContext to another cpp

* ...

* ...

* Update ScreenshotMacOS.mm

* Update Microsoft.ReactNative.MacOS.mm

* ...

* Fix memory leak
2020-09-22 20:50:35 +02:00
Eloy Durán d2e633ad8c Fix iOS build failures. 2020-09-22 17:12:44 +02:00
Eloy Durán 5ada5e069b [package] Update CLI to no longer require config
This makes a previous change more explicit:
https://github.com/microsoft/react-native-macos/pull/602
2020-09-22 16:34:15 +02:00
Scott Kyle 07866c01d8
Fix modal RedBox not running main dispatch queue (#609)
The RedBox could get an app in a “stuck” state because it would completely pause the main dispatch queue. This was especially evident by changing a style to be an incompatible value (e.g. `width: '50px'`), which would get you in a state where you'd need to just kill and restart the application.

Calling `[NSApp runModalForWindow:]` will result in a new runloop that does not process the main dispatch queue. This change instead runs a modal session on the main runloop that still processes the main dispatch queue.

Further reading:
- https://www.thecave.com/2015/08/10/dispatch-async-to-main-queue-doesnt-work-with-modal-window-on-mac-os-x/
- https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/WinPanel/Concepts/UsingModalWindows.html
2020-09-22 15:44:17 +02:00
Eloy Durán f5bdf7296e Merge branch 'master' into fb63merge 2020-09-22 15:32:48 +02:00
Eloy Durán 5d33f162c1 [PlatformColorValueTypes] Add macOS shim 2020-09-21 16:28:28 +02:00
Andrew Coates 782f783d0d
Remove the custom metro config from the template (#602)
Co-authored-by: Andrew Coates <acoates-ms@noreply.github.com>
2020-09-21 15:59:32 +02:00
Tom Underhill b83bc5508b
Bring --ci switch in from 0.62-stable branch and get rid of superfulous --testing switch. (#607) 2020-09-21 14:52:06 +02:00
Tom Underhill aac33da5bf
VoiceOver accessibility issues in RN .62 (#603)
* Update scripts to publish react-native-macos-init

* Clean up merge markers

* Restored ios:macos RNTester parity except for InputAccessoryView.

* Revert "Restored ios:macos RNTester parity except for InputAccessoryView."

This reverts commit 5a67ae06b0.

* Remove unnecessary android builds and tar file upload.

* RN .62 accessiblity fixes.

* Fix regression in recursive accessiblityLabel text.

* Changed per PR feedback.

* Add "disclosure" role for mac mapping to NSAccessibilityDisclosureTriangleRole.   Make accessibilityValue return "checked" state for checkbox, radiobutton, and disclosure roles.

* CocoaPods does not like podspec version numbers that are 0.0.0.   The canary builds
 set the version to 0.0.0-<commithash> via `node scripts/bump-oss-version.js --nigh
tly` which causes the "Verify react-native-macos-init MacDebug" CI test to fail bec
ause `pod install` fails due to `.podspec` versions that are 0.0.0.  Add a `--testi
ng` switch to `bump-oss-version.js` that changes the version to 1000.0.0 and use th
at switch in `react-native-macos-init.yml`.

Co-authored-by: React-Native Bot <53619745+rnbot@users.noreply.github.com>
2020-09-21 12:27:43 +02:00
Zihan Chen (MSFT) 5f65b86e4d
Port REACT_MODULE() from react-native-windows to react-native-macos (2/4) (#599)
* Update comment header

* Update comment header

* ...

* Update project.pbxproj

* ...

* ...

* Built JsiReader/Writer

* ...

* Update project.pbxproj

* Update TurboModulesProvider.cpp

* Update project.pbxproj

* Update Microsoft.ReactNative.h

* Update Microsoft.ReactNative.h

* Update Windows.Foundation.h

* Update TurboModulesProvider.cpp

* Update project.pbxproj

* ...

* Update Microsoft.ReactNative.h

* Update ScreenshotMacOS.mm

* Update ScreenshotMacOS.mm

* Update NativeModules.h

* Update ScreenshotMacOS.mm
2020-09-17 04:19:12 -07:00
HeyImChris f94d14d496
Remove the art lib from our nuget pack command (#600)
* Update RCTCxxBridge.mm

* remove art lib

* remove art lib
2020-09-16 15:00:27 -07:00
Eloy Durán 8938ca4b46 [RCT-Folly] Fix build 2020-09-16 19:45:15 +02:00
Eloy Durán 01481ef580 [RNTester-macOS] Fix 2020-09-16 19:44:59 +02:00
Eloy Durán 302c57c5bb [RCTBaseTextInputView] Make platform agnostic 2020-09-16 19:44:38 +02:00
HeyImChris 538a2677e8
Contribution doc for RN62 (#598)
* Update RCTCxxBridge.mm

* update guidelines for RN62
2020-09-15 14:06:07 -07:00
Zihan Chen (MSFT) 1a5abe4bec
Port REACT_MODULE() from react-native-windows to react-native-macos (1/4) (#595)
* ...

* ...

* ...

* ...

* ...

* Built JSValue.h

* Add include path

* ...

* Built JSValueTree(Reader|Writer)

* ...

* Built JSValue(Reader|Writer)

* ...

* Built ModuleRegistration

* ...

* ...

* ...

* ...

* ...

* ...

* ...

* ...

* ...

* ...

* Update ReactContext.h

* Update ReactPropertyBag.h

* Update ReactNonAbiValue.h

* ...

* Built ReactPromise

* ...

* Create Windows.Foundation.h

* ...

* Update NativeModules.h

* ...

* Update NativeModules.h

* Build dummy react module

* Fix build break
2020-09-14 12:57:45 -07:00
Andrew Coates 44211a6304
Provide information to metro to redirect to rn-macos when building macos (#587)
* Provide information to metro to redirect to rn-macos when building macos

* Update version of cli we are using

* more config

Co-authored-by: Andrew Coates <acoates-ms@noreply.github.com>
2020-09-14 20:12:17 +02:00
Eloy Durán e299872d43 [RCTBaseTextInputViewManager] Make platform agnostic 2020-09-11 19:22:35 +02:00
Eloy Durán d3c6116d9c v0.63 TODO 2020-09-11 19:22:23 +02:00
Eloy Durán 1f79737584 [RCTPushNotificationManager] Guard for macOS 2020-09-11 18:56:50 +02:00
Eloy Durán 5d1020d3e4 botched merge changes 2 2020-09-11 18:56:15 +02:00