diff --git a/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js b/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js
index fbf4deb29d2c..f4e9c9801aae 100644
--- a/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js
+++ b/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js
@@ -846,6 +846,40 @@ function MultilineStyledTextInput({
);
}
+function DynamicContentWidth() {
+ const [text, setText] = useState('');
+ const update = () => {
+ const randomNumber = Math.floor(Math.random() * 10);
+ setText(text + randomNumber);
+ };
+
+ return (
+
+ Uncontrolled:
+
+ Controlled:
+
+
+
+ );
+}
+
module.exports = ([
{
title: 'Auto-focus & select text on focus',
@@ -1149,4 +1183,11 @@ module.exports = ([
);
},
},
+ {
+ title: 'Dynamic content width',
+ name: 'dynamicWidth',
+ render: function (): React.Node {
+ return ;
+ },
+ },
]: Array);