From 2c19d85285ff0cc9bf89ef1300262779405e5c18 Mon Sep 17 00:00:00 2001 From: Nadiia D Date: Tue, 9 Feb 2021 21:04:57 -0800 Subject: [PATCH] TextInput: test cursor placement Summary: Changelog: [General][Internal] Added some test IDs for the TextIput examples. Reviewed By: lunaleaps Differential Revision: D26265361 fbshipit-source-id: 26d7a69f74f283daed2ddabaaf31113cd3089bf3 --- .../TextInput/TextInputSharedExamples.js | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js b/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js index 4a1f8d54e41..670589027cc 100644 --- a/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js +++ b/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js @@ -419,10 +419,10 @@ class SelectionExample extends React.Component< const length = this.state.value.length; return ( - + this.setState({value})} onSelectionChange={this.onSelectionChange.bind(this)} @@ -433,17 +433,23 @@ class SelectionExample extends React.Component< /> - - selection = {JSON.stringify(this.state.selection)} + + selection = {JSON.stringify(this.state.selection).replace(/"/g, '')} - + Place at Start (0, 0) - + Place at End ({length}, {length}) Place at Random - + Select All Select Random