Hi 2 all y'all. Sorry for my poor english. I got a trouble with TextInputs inside the Tab. When i press a key on keyboard when i enter the value in field, i got a bug: when i press the button, i got one symbol in field and keyboard got close. If i place TextInput outside the Tab everything works fine.
"expo": "~38.0.8",
"react-native-gesture-handler": "1.6.0",
"react-native-tab-view": "2.15.0",
"react-native-reanimated": "1.9.0"
Couldn't find version numbers for the following packages in the issue:
react-native-reanimatedCan you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
react-native-gesture-handler (found: 1.6.0, latest: 1.6.1)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
I had to update versions of packeges, but i still got trouble
i have "react-native-gesture-handler": "^1.7.0", but having same issue
i have "react-native-gesture-handler": "^1.7.0", when i type in text input one letter keyboard disappeared
There is any solution for this problem or not plz tell me
@satya164 plz tell me so that i can use this in my project i searched online but not found solution
@satya164 anyone here to help or not
@satya164 anyone here to help or not
I had migrated to Swiper solution, all working fine
same issue +1
anyone have solution?
If put value and onChangeText props in TextInput the keyboard disappears whenever type.
If not put in props, there's no problem.
Same issue here =(
Same issue here =(
It work for me.
I'm using
react-native-tab-view: 2.15.2react-native-reanimated: 1.13.2react-native-gesture-handler: 1.9.0const [index, setIndex] = useState(0);
const [routes] = useState([
{key: 'one', title: 'tabOne'},
{key: 'two', title: 'tabTwo'},
{key: 'three', title: 'tabThree'},
]);
const [inputA, setInputA] = useState('');
const [inputB, setInputB] = useState('');
const [inputC, setInputC] = useState('');
// ~~~~
// ~~~~
const _renderTabs = ({route}) => {
switch (route.key) {
case 'one':
return (
<View><TextInput value={inputA} onChangeText={setInputA} /></View>
)
case 'two':
return (
<View><TextInput value={inputB} onChangeText={setInputB} /></View>
)
case 'three':
return (
<View><TextInput value={inputC} onChangeText={setInputC} /></View>
)
}
});
<TabView
swipeEnabled={true}
renderTabBar={() => null}
navigationState={{index, routes}}
renderScene={_renderTabs}
onIndexChange={setIndex}
/>
Most helpful comment
i have "react-native-gesture-handler": "^1.7.0", when i type in text input one letter keyboard disappeared