@@ -66,7 +66,9 @@ const DEBUG_SCROLLABLE = false;
6666
6767// Enabling this prop fixes input flickering while auto growing.
6868// However, it's still experimental and not tested well.
69- const ANDROID_EXPERIMENTAL_SYNCHRONOUS_EVENTS = true ;
69+ // Disabled for now, as it's causing some strange issues.
70+ // See: https://github.com/software-mansion/react-native-enriched/issues/229
71+ const ANDROID_EXPERIMENTAL_SYNCHRONOUS_EVENTS = false ;
7072
7173export default function App ( ) {
7274 const [ isChannelPopupOpen , setIsChannelPopupOpen ] = useState ( false ) ;
@@ -80,10 +82,6 @@ export default function App() {
8082 const [ currentLink , setCurrentLink ] =
8183 useState < CurrentLinkState > ( DEFAULT_LINK_STATE ) ;
8284
83- const [ key , setKey ] = useState ( 0 ) ;
84- const incrementKey = ( ) => setKey ( ( v ) => v + 1 ) ;
85- const collectGarbage = ( ) => global . gc ?.( ) ;
86-
8785 const ref = useRef < EnrichedTextInputInstance > ( null ) ;
8886
8987 const userMention = useUserMention ( ) ;
@@ -264,7 +262,6 @@ export default function App() {
264262 < View style = { styles . editor } >
265263 < EnrichedTextInput
266264 ref = { ref }
267- key = { key }
268265 mentionIndicators = { [ '@' , '#' ] }
269266 style = { styles . editorInput }
270267 htmlStyle = { htmlStyle }
@@ -299,14 +296,6 @@ export default function App() {
299296 < Button title = "Focus" onPress = { handleFocus } style = { styles . button } />
300297 < Button title = "Blur" onPress = { handleBlur } style = { styles . button } />
301298 </ View >
302- < View style = { styles . buttonStack } >
303- < Button
304- title = "Bump key"
305- onPress = { incrementKey }
306- style = { styles . button }
307- />
308- < Button title = "GC" onPress = { collectGarbage } style = { styles . button } />
309- </ View >
310299 < Button
311300 title = "Set input's value"
312301 onPress = { openValueModal }
0 commit comments