diff --git a/app/react-native/src/preview/components/OnDeviceUI/index.js b/app/react-native/src/preview/components/OnDeviceUI/index.js index b8622555a2db..bba3360275a9 100644 --- a/app/react-native/src/preview/components/OnDeviceUI/index.js +++ b/app/react-native/src/preview/components/OnDeviceUI/index.js @@ -105,7 +105,7 @@ export default class OnDeviceUI extends PureComponent { }); // close the keyboard opened from a TextInput from story list or knobs - if (newTabOpen === 0) { + if (newTabOpen === PREVIEW) { Keyboard.dismiss(); } }; @@ -135,7 +135,7 @@ export default class OnDeviceUI extends PureComponent { return (