react-native-draggable icon indicating copy to clipboard operation
react-native-draggable copied to clipboard

Drag is not working in iOS.

Open zoran888 opened this issue 3 years ago • 3 comments

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!

zoran888 avatar Jun 28 '21 02:06 zoran888

@baconcheese113 Can you please let me know why onDrag is not called in iOS only? Regards.

zoran888 avatar Jun 28 '21 02:06 zoran888

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

zoran888 avatar Jul 01 '21 08:07 zoran888

did it work for you @zoran888 ?

aleena-adnan1 avatar Mar 15 '23 13:03 aleena-adnan1