Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag is not working in iOS. #103

Open
zoran888 opened this issue Jun 28, 2021 · 3 comments
Open

Drag is not working in iOS. #103

zoran888 opened this issue Jun 28, 2021 · 3 comments

Comments

@zoran888
Copy link

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
Copy link
Author

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

@zoran888
Copy link
Author

zoran888 commented Jul 1, 2021

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

@aleena-adnan1
Copy link

did it work for you @zoran888 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants