mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
77305cadf0
Summary: This PR makes it possible for subclasses of `ReactTextInputShadowNode` to control the construction of the "dummy" `EditText` instance that `ReactTextInputShadowNode` internally uses to determine the expected height of the view. This PR does not change the default behavior, it just opens up that default to being overriden. This is useful in the case of custom views that have different behavior from a "default" `EditText` instance (`new EditText(context)`). For example, it might have a different style applied. As a side benefit, this change also makes it easy to have subclasses not apply the default theme, which can allow the custom view to avoid a longstanding crash issue (https://github.com/facebook/react-native/issues/17530). ## Changelog [Android] [Added] - Allow overriding `EditText` construction in `ReactTextInputShadowNode` Pull Request resolved: https://github.com/facebook/react-native/pull/27782 Test Plan: All tests pass. Reviewed By: mdvacca Differential Revision: D19450593 Pulled By: JoshuaGross fbshipit-source-id: 8d2ce6117246fc3e2108623312b38583af5722b3
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.