feat: DrawerLayoutAndroid
Co-authored-by: Przemysław Sosna<przemyslaw.sosna@swmansion.com>
# message auto-generated for no-merge-commit merge:
!1638 merge @sosen/drawerlayoutandroid into 0.77.1-rc.1-ohos
feat: DrawerLayoutAndroid
Created-by: PrzemekSosna
Commit-by: Przemysław Sosna
Merged-by: huangyouhua
Description: ## Description
This PR adds RNs DrawerLayoutAndroid based on ArkUIs SideBarContainer. SideBarContainer is only present in ArkTS, so it has to be implemented there.
SideBarContainer requires exactly 2 ArkTS children, and because of this a single child with ContentSlot can't be used to build the children. I decided to use an additional "ContainerView" custom ArkTS component, which will be used as the DirectChild of SideBarContainer and will wrape the ContentSlots. The recommended way to create ArkTS children is ctx.wrappedRNChildrenBuilder, but it doesn't fulfill the 2 children requirement. That's why I used ctx.wrappedRNComponentBuilder directly.
Not all props are currently supported due to platform limitations. The SideBarContainer doesn't animate when controlled programatically.
## Changes
- added: DrawerLayoutAndroid arkTS component
## Test Plan
Check DrawerLayoutAndroid example.
## Checklist
- [x] Does not involve incompatible changes; if involved, has been reviewed accordingly.
- [x] Does not impact performance, or performance testing has been conducted without degradation.
- [x] Complies with the relevant coding standards.
- [x] Does not involve documentation updates, or the documentation has been updated.
- [x] Meets testability requirements with necessary self-test cases, appropriate logging, or trace information added.
- [x] No illegal file inclusions exist, such as images or code.
See merge request: openharmony-sig/ohos_react_native!1638
Update react-native to 0.79.5
Co-authored-by: Patryk Fryda<patryk.fryda@swmansion.com>
# message auto-generated for no-merge-commit merge:
!1768 merge 0.79-dev into 0.82
Update react-native to 0.79.5
Created-by: pafry
Commit-by: Patryk Fryda
Merged-by: huangyouhua
Description: ## Why are these changes being made?
There is ongoing effort to update react-native and RNOH to 0.82. This is the second step.
**This PR should be merged to the new 0.82 branch.**
## Notable react-native changes:
- https://github.com/facebook/react-native/pull/49284 - react_render_debug -> react_renderer_debug
- https://github.com/facebook/react-native/pull/49465 - enableFixForViewCommandRace flag removed
- https://github.com/facebook/react-native/pull/48851 - disableEventLoopOnBridgeless flag removed
- https://github.com/facebook/react-native/pull/48836 - hermes sampling profiling
- https://github.com/facebook/react-native/pull/49284 - CMake "react_render_" to "react_renderer_"
- migration to export syntax in packages/react-native/index.js
## Other changes:
- fixed getIntenalViewConfig typo,
- bumped hermes and react-native
## Changelog
- updated react-native to 0.79.5
## Test Plan
- launch tester app,
- run sequential and concurrent tests
## Checklist
- [x] pnpm verify command has passed successfully.
- [x] No failures occurred in automatic tests on the CONCURRENT TESTER page in the tester app.
- [x] No failures occurred in automatic tests on the SEQUENTIAL TESTER page in the tester app.
- [x] MR does not include a breaking change or a review has been requested from a Huawei reviewer.
See merge request: openharmony-sig/ohos_react_native!1768