mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: When RN moved Button component from a class component to a function component (https://github.com/facebook/react-native/commit/07e8ae42bed71f54bbe0e786ccad88b2f14648a4) a forwardRef call was not added to the Button control. This caused a set of tests downstream in React Native for Windows to fail because they rely on being able to pass a ref through to the Button control. ## Changelog: [GENERAL] [FIXED] - Adds forwardRef call to new functional component implementation of Button control. Pull Request resolved: https://github.com/facebook/react-native/pull/43666 Test Plan: Button render remains the same. Reviewed By: fabriziocucci Differential Revision: D55398765 Pulled By: zeyap fbshipit-source-id: ba32c764c16cb529ab1c92cb7888f2bae0f16f5f