Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ class BaseTextInputShadowNode
const auto &stateData = BaseShadowNode::getStateData();
const auto &reactTreeAttributedString = getAttributedString(layoutContext);

if (stateData.reactTreeAttributedString.isContentEqual(reactTreeAttributedString)) {
if (stateData.reactTreeAttributedString.isContentEqual(reactTreeAttributedString) &&
stateData.reactTreeAttributedString.getBaseTextAttributes() ==
reactTreeAttributedString.getBaseTextAttributes()) {
return;
}

Expand Down
17 changes: 0 additions & 17 deletions packages/rn-tester/js/examples/TextInput/TextInputExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,23 +778,6 @@ const textInputExamples: Array<RNTesterModuleExample> = [
);
},
},
{
title: 'Auto-expanding',
render: function (): React.Node {
return (
<View>
<ExampleTextInput
placeholder="height increases with content"
defaultValue="React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native."
multiline={true}
enablesReturnKeyAutomatically={true}
returnKeyType="go"
style={[styles.multiline, styles.multilineExpandable]}
/>
</View>
);
},
},
{
title: 'TextInput maxLength',
render: function (): React.Node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,20 @@ module.exports = [
);
},
},
{
title: 'Auto-expanding (uncontrolled)',
render: function (): React.Node {
return (
<View>
<ExampleTextInput
placeholder="height should grow up to 10 lines"
multiline={true}
numberOfLines={10}
/>
</View>
);
},
},
{
title: 'Drag and drop',
render: function (): React.Node {
Expand Down
Loading