react-native-draggable
react-native-draggable copied to clipboard
Drag is not working in iOS.
Thanks for building an awesome library.
I am using react-native-draggable@^3.3.0 and it's working fine in android. But in iOS, draggable is not working.
My code looks like
<Draggable
x={moderateScale(10)}
y={moderateScale(10)}
z={99}
onDrag={(e) => console.log(e)}>
<TextInput
style={[styles.input, {color: data.color}]}
multiline={true}
value={data.text}
onChangeText={setText}
onBlur={() => {
Keyboard.dismiss();
}}
placeholder="Input text here..."
placeholderTextColor={AppColors.secondary}
/>
</Draggable>
When I am trying to drag textinput, it gives focus to textinput first so keyboard is always shown and can't drag anymore. Thanks for your help!
@baconcheese113 Can you please let me know why onDrag is not called in iOS only? Regards.
And also in ios, if parent of Draggable is TouchableOpacity, the draggable is not working. @tongyy @baconcheese113 Please let me know your thoughts about this. Thanks
did it work for you @zoran888 ?