0.71
Announcing 0.71 🎉
We've got great news to share: React Native macOS 0.71 is now out!
A lot of work went into making this happen, please read the announcement blogpost to learn more 📖
Highlights
- Fabric experimental support via the
RCT_NEW_ARCH_ENABLED
flag - Shadow styles no longer render inconsistently
- Cursor customization support, via the
cursor
style prop - ... along with many updates to Text, TextInput, ScrollView, and Image!
Full List of Changes
- Update beachball to 2.25.0 by @amgleitman in #1259
- Import OCMock for RNTester macOS as a pod by @amgleitman in #1257
- Keyboard navigation in Flatlist by @Saadnajmi in #1258
- Flatlist keyboard navigation: Mouse can move selection by @Saadnajmi in #1267
- Fix VoiceOver for single-line TextInput by @christophpurrer in #1271
- Avoid RCTUnsafeExecuteOnMainQueueSync from RCTUIManager by @christophpurrer in #1266
- Add undo/redo support for TextInput by @christophpurrer in #1274
- Allow scrollResponderZoomTo() on macOS by @christophpurrer in #1265
- Fix missing autorelease pool in RCTPlatformDisplayLink by @christophpurrer in #1277
- Turn on focus ring for multiline textinput by @chiuam in #1276
- Fix event.locationX/Y to be in view's coordinate space by @christophpurrer in #1288
- Fix RCTDevLoadingView never actually closing by @christophpurrer in #1280
- Fix spellCheck and autoCorrect props by @christophpurrer in #1292
- Fix text replacement not working in multiline TextInput by @christophpurrer in #1286
- Don't send events when clicking on scrollbars by @christophpurrer in #1281
- Pass grammarCheck to text input views for Mac by @christophpurrer in #1293
- Single line TextInput fixes (prevent newLines, support horizontal overflow) by @christophpurrer in #1284
- Textinput range fix by @chiuam in #1296
- Honor enableFocusRing flag for multiline textFields by @christophpurrer in #1301
- Migrate FabricBot Tasks to Config-as-Code by @msftbot in #1225
- Fix nested Text components not inheriting foreground color from parent by @christophpurrer in #1283
- [RN][macos] Enable Hermes for RNTester by @shwanton in #1308
- Revert "Alleviate excessive layout jittering when resizing window (#439)" by @christophpurrer in #1318
- Remove TextInput setting insertionPointColor by @christophpurrer in #1321
- Remove stale files and folders from the root of our repo by @Saadnajmi in #1328
- Match package.json dependencies with RN Core + prettier by @Saadnajmi in #1333
- Remove more stale folders/files/changes by @Saadnajmi in #1337
- Fix RCTImageCache on macOS by @christophpurrer in #1272
- Add fragmentLinePadding for multiline shadow view to track TextView correctly by @christophpurrer in #1332
- Fix cursor not showing when tabbing into multiline TextInput by @christophpurrer in #1342
- Pass callbacks for when grammarCheck, spellCheck and autoCorrect are changed on macOS by @christophpurrer in #1325
- Fix Appearance module to observe application appearance by @christophpurrer in #1340
- Refactor handling of keyDown/keyUp by @christophpurrer in #1338
- Cache local images into memory by @christophpurrer in #1279
- Fix inconsistent shadows by @lyzhan7 in #1352
- Fix BAT line endings by @JunielKatarn in #1142
- Improve VoiceOver accessibility support for Flatlist by @chiuam in #1341
- Add cursor prop to View and Touchables by @ryanlntn in #760
- Provide option to not blindly foreground app's lastWindow from deepLinks by @christophpurrer in #1355
- Add scrollbar to multiline TextInput by @chiuam in #1366
- Move
RCTRootShadowView
creation to main thread by @amgleitman in #1344 - Fix TextInput interfering with Japanese conversion by @christophpurrer in #1358
- Deprecate onScrollKeyDown, refactor Flatlist selection logic by @Saadnajmi in #1365
- Fix build errors with codegen discovery flag enabled by @shwanton in #1320
- Don't set accessibilityRole by default in Flatlist by @chiuam in #1382
- RNTester: Only show the Flatlist keyboard navigation switch on macOS by @Saadnajmi in #1381
- Fix issue with setting initialSelectedindex to 0 in Flatlist by @Saadnajmi in #1399
- Allow clients to override keyboard focus props on FlatList by @Saadnajmi in #1403
- Add shadow inconsistency opacity fix with updated tests by @lyzhan7 in #1402
- Fix macOS 13 build error by @Saadnajmi in #1408
- Support inverted ScrollView on macOS by @christophpurrer in #1264
- Fix handling of keyDown/keyUp events by TextInput by @christophpurrer in #1345
- Fixing setting focus when RCTView is not yet in window by @nakambo in #1398
- Add MultilineTextInput drag/drop support by @christophpurrer in #1351
- Remove redundant podfile targets by @Saadnajmi in #1416
- Add MultilineTextInput paste support by @christophpurrer in #1350
- Grab RCTPerfMonitor's devSettings from the bridge by @amgleitman in #1426
- Don't install boost twice by @Saadnajmi in #1330
- Fix rn-tester TextInput warning for missing image.source.uri by @christophpurrer in #1434
- Fix insertion point and placeholder placement for TextInput by @christophpurrer in #1322
- Bump beachball to 2.30.1 by @amgleitman in #1435
- Adds declarative props to clear/submit MultilineTextInput by @christophpurrer in #1423
- Add option to enforce pasting plain text by @christophpurrer in #1429
- Workaround to open file handles for loaded assets by @christophpurrer in #1287
- Fix resizeMode="cover" when image is resized by @christophpurrer in #1273
- Add Dynamic Type support by @amgleitman in #1445
- A couple of renames to make Dynamic Type features more proper by @amgleitman in #1454
- Fix drag and drop of files in multiline textfield when a custom draggedType property is used by @christophpurrer in #1452
- Support arbitrary selectable text in Text component by @shwanton in #1346
- Use Xcode 14.0.1 in ADO by @amgleitman in #1455
- Refactor how
focusable
is handled in RCTView by @Saadnajmi in #1437 - Flatlist: Let ArrowUp/ArrowDown bubble at the top/bottom of list by @Saadnajmi in #1458
- Refactor vertical scrollbar to only be visible when text content overflows by @shwanton in #1438
- Fix disable scrolling for multiline text input by @shwanton in #1244
- Enable .podspec files for Fabric by @christophpurrer in #1460
- Fix compile errors when building with Fabric on rn-iOS by @christophpurrer in #1461
- Delete more unnecessary files by @Saadnajmi in #1467
- Add missing scaleFactor argument to Fabric RCTViewComponentView.mm by @christophpurrer in #1464
- Maintain rich text formatting when copy/pasting from text view by @shwanton in #1470
- Remove faulty logic in ScrollView by @Saadnajmi in #1510
- Unfork RCTLogBox by @christophpurrer in #1501
- Fix C++17 Xcode build when the new architecture is enabled by @christophpurrer in #1512
- Add cursor style to Text by @shwanton in #1469
- fix: cannot resolve
@react-native-community/cli-tools
by @tido64 in #1529 - [Fabric] Replace UIKit with RCTUIKit shim by @shwanton in #1519
- [Fabric] Convert UIScrollView to RCTUIScrollView shim by @shwanton in #1526
- [Fabric] Convert UISlider to RCTSlider shim by @shwanton in #1525
- [Fabric] Convert UIColor to RCTUIColor shim by @shwanton in #1523
- [Fabric] Convert UIView to RCTUIView shim by @shwanton in #1524
- [Fabric] Remove ios specific apis by @shwanton in #1533
- [Fabric] Fix unterminated conditional that was breaking Fabric iOS build by @shwanton in #1574
- Remove deprecated prop-types reference for Text by @shwanton in #1518
- Remove AlertMacOS in favor of Alert & promptMacOS by @Saadnajmi in #1548
- [Fabric] Convert UISwitch to RCTSwitch shim by @shwanton in #1527
- [Fabric] Shim RCTTextInputComponentView to work w/ Fabric by @shwanton in #1544
- [Fabric] Shim RCTUILabel by @shwanton in #1576
- [Fabric] Fix bad merge that removed
RCTUISwitch
definition from #1576 by @shwanton in #1585 - Fix template project specifying wrong constraints by @Saadnajmi in #1413
- [Fabric] Convert UIActivityIndicatorView to RCTActivityIndicatorView shim by @shwanton in #1528
- Use RCTUISwitch shim in Paper (RCTSwitch) by @Saadnajmi in #1590
- Implement Flow type MacOSViewProps by @Saadnajmi in #1583
- [Fabric] Shim RCTScrollViewComponentView by @shwanton in #1584
- [Fabric] Shim RCTPixelValue to take scale factor by @shwanton in #1586
- [Fabric] Shim RCTSliderComponentView by @shwanton in #1588
- [Fabric] Shim UIViewContentMode by @shwanton in #1587
- [Cherry-pick] Pick up upstream fix to NewAppScreen to remove a diff by @Saadnajmi in #1608
- [Fabric] Disable UIAccessibilityElement API's till we update them for Fabric by @shwanton in #1581
- Add support for TextInput clearTextOnFocus and selectTextOnFocus by @shwanton in #1517
- Move typdef from RCTImageView -> RCTUIKit by @Saadnajmi in #1617
- Remove diff in RCTImageLoader by @Saadnajmi in #1616
- Fix coordinates of touch.pageX/pageY coordinates when RCTRootView is not at the origin of the NSWindow by @tom-un in #1619
- Fix many compiler warnings by @Saadnajmi in #1612
- Unify all the macOS diff tags by @Saadnajmi in #1392
- Return and Space keys do not trigger onPress events by @tom-un in #1623
- Fix compilation error in Schedule.cpp when building for rn-iOS + Fabric by @christophpurrer in #1634
- Remove OS check in RCTMultiPartDataTask.m #1600 by @christophpurrer in #1633
- Revert nextKeyViewTag prop by @Saadnajmi in #1621
- [Fabric] Enable NewArchitectureExample Fabric example in RNTester iOS by @shwanton in #1520
- Rename rn-tester-macOS ViewController.m to .mm by @christophpurrer in #1657
- [CI] Build & Test Fabric iOS, Disable failing CircleCI checks by @Saadnajmi in #1641
- Add Fabric example to rn-tester-macOS by @christophpurrer in #1659
- Add ScrollView Indicator Overlay style by @shwanton in #1658
- [Fabric] Fix NativeComponentExample not rendering on Fabric by @shwanton in #1662
- [Fabric] Shim RCTFabricModalHostViewControllerDelegate by @shwanton in #1671
- [Fabric] Shim missing properties + font name by @shwanton in #1673
- [Fabric] Shim RCTSurfaceTouchHandler by @shwanton in #1682
- [Fabric] Shim RCTComponentViewDescriptor by @shwanton in #1683
- [Fabric] Fix misc rendering & build issues by @shwanton in #1684
- Only forward click events to NSTextview by @shwanton in #1515
- GH#1395 Fixes caret changing sizes if text field is empty by @ospfranco in #1663
- Remove horizontal scrollview indicator padding when empty by @shwanton in #1635
- [Fabric] Shim RCTSwitchComponentView by @shwanton in #1672
- [Fabric] Shim RCTImage by @shwanton in #1674
- [Fabric] Shim RCTTextInput by @shwanton in #1681
- [Fabric] Remaining fixes for Fabric building on macOS target by @shwanton in #1685
- [Fabric] Enable CI for building RNTester w/ Fabric macOS by @shwanton in #1686
- [Fabric] RCTSurfaceTouchHandler for macOS by @lenaic in #1688
- Update accessibilityValue to include radio button state attribute by @chiuam in #1691
- Include timestamp in nightly versions by @Saadnajmi in #1704
- Respect system proxy settings for WebSocket by @amgleitman in #1725
- Respect system proxy settings for WebSocket, take 2 by @amgleitman in #1726
- Don't passthru key events that override Pressibilty api's by @shwanton in #1731
- Remove dependency on NPM package
request
by @Saadnajmi in #1754 - Bump webpack from 5.73.0 to 5.76.0 in /ReactCommon/hermes/inspector/tools/msggen by @dependabot in #1742
- Use SocketRocket for web socket library (facebook#36471) by @amgleitman in #1746
- [0.71] Fix new architecture build for rn-macOS (macOS and iOS) by @christophpurrer in #1779
New Contributors
- @ospfranco made their first contribution in #1663
Full Changelog: v0.68.70...v0.71.1
To help you upgrade to this version, you can use the upgrade helper ⚛️