terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
693 stars 450 forks source link

Sketching aborts with react-native-navigation side Menu enabled #119

Open pdziak opened 5 years ago

pdziak commented 5 years ago

Hello,

on Android works OK. Problem exists on Apple devices - I experienced it on iPhone 6 and simulated iPhone X.

Problem: when trying to skech long line on SketchCanvas area, sketching is aborted and only dots or very short lines are possible. Probably swipe event is catched by Navigation.

Navigation.setDefaultOptions({
            sideMenu: {
                right: {
                    enabled: false,
                    visible: false,
                },
                left: {
                    enabled: false,
                    visible: false,
                }
        });

Setting above settings for Navigation resolves the problem but disables the side menu.

DanielBoening commented 5 years ago

You can disable the side menu. I did this with react-native-navigation v1 and its the only solution I found so far. You could still open the side menu when pressing on a button or sth similar.