Skip to content

Cannot draw even following every instruction #63

Open
@brianso123

Description

@brianso123

On what kind of device are you using this library?

  • Android
  • iOS
  • Web

Environment

- OS: IOS 15.5
- react-native: 0.66.3
- @benjeau/react-native-draw: 0.8.3

Current Behavior

Cannot draw on the Canvas and keep on getting the error: [ReferenceError: Can't find variable: t] for each touch events.

Screenshot 2022-05-24 at 2 15 27 PM

Expected Behavior

be able to draw

Steps To Reproduce

  1. set up new typescript RN template
    npx react-native init draw --template [email protected]

  2. install all the dependences
    npm i react-native-gesture-handler react-native-svg @benjeau/react-native-draw

  3. install pod
    cd ios && pod install && cd ..

  4. add <GestureHandlerRootView> wrapper at App.tsx

  5. import "react-native-gesture-handler" in both App.tsx and index.js

  6. modifiy App.tsx so that it matches the example

  7. npm run ios

Anything else?

I have been reading all the documents again and again and I believe I followed every instructions.
I even tried going to the example package.json to copy all the dependencies and versions but that error still occurs.

Please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions