298028 (3) [Avatar] Offline
#1
I noticed that it takes two touches to get the todo to submit, and decided to look into it.

It seems that there is some interaction with an Input inside a ScrollView where a tap outside of the keyboard is used to dismiss the keyboard, but isn't passed down to the children of the SV. The simplest thing I could find is to add

keyboardShouldPersistTaps="handled"


To the ScrollView tag, and add

Keyboard.dismiss()


to the submitTodo method (add Keyboard to the react-native imports)

I'm not sure its helpful to have this level of detail in the intro app, but a note to the effect of 'it takes two touches to submit a Todo, this will be addressed later in the book" might help
287516 (24) [Avatar] Offline
#2
Ah great point, I'll be sure to add this into the next update.

You can also add keyboardShouldPersistTaps="always" and not have to worry about the Keyboard.dismiss() method!

Thanks for the feedback.