BenJeau / react-native-draw

SVG based data-driven React Native drawing component 🎨
https://www.npmjs.com/package/@benjeau/react-native-draw
MIT License
127 stars 42 forks source link

Unable to draw on iOS build, works locally on Expo #83

Closed agastyav05 closed 8 months ago

agastyav05 commented 8 months ago

On what kind of device are you using this library?

Environment

- OS: iOS 17.0.3
- react-native: 0.71.13
- expo: 48.0.18
- @benjeau/react-native-draw: 0.8.3
- @luncheon/simplify-svg-path: 0.2.0
- react-native-gesture-handler: 2.9.0

Current Behavior

Drawing works when my app is tested using Expo Go, but once it is built to iOS, nothing seems to happen. It's not an issue with react-native-svg, as svgs are still rendering.

Expected Behavior

I should be able to draw.

Steps To Reproduce

  1. If you're using React Native Navigation, set up a new Stack.Screen with the following code (if not, just put it into App):
    const WelcomeScreen = ({ navigation }) => {
    const canvasRef = useRef()
    return (
    <Canvas
      style={{ flex: 1 }}
      ref={canvasRef}
      thickness={8}
      tool={'brush'}
    />
    )
    }
  2. eas build -p ios then test with TestFlight

Anything else?

No response