-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot draw even following every instruction #63
Comments
Facing the same issue. |
The same on the Android simulator. |
Facing the same issue. |
Same iOS. Anyone have a fix yet? |
The package works well in Expo. But for app using
Please let me know if there is any other permanent solutions. |
For build, I needed to change build script of I have tested this on Android debug build and not on Android prod build and iOS builds(both). |
Same issue LOG ReferenceError: Can't find variable: t. Try both solutions but not work any. |
My friend helped me solve it for me. I had been getting "Can't find variable: t", but I changed some stuff: Add a patch file (mine's called @luncheon+simplify-svg-path+0.1.5.patch) with the following code (don't omit anything) : Add the following in package.json dependencies: And the following in package.json scripts: |
@sickopickle hi, i follow your instruccionts, but not works |
Are you sure you have installed all the dependencies and followed all the instructions? the patch file looks correct. |
For now, I updated the @luncheon/simplify-svg-path to 0.2.0. In package.json:
|
update version 0.2.0 for @luncheon/simplify-svg-path on @benjeau/react-native-draw/node_moduls |
I am using expo but still facing same issue. |
On what kind of device are you using this library?
Environment
Current Behavior
Cannot draw on the Canvas and keep on getting the error: [ReferenceError: Can't find variable: t] for each touch events.
Expected Behavior
be able to draw
Steps To Reproduce
set up new typescript RN template
npx react-native init draw --template react-native-template-typescript@6.6.4
install all the dependences
npm i react-native-gesture-handler react-native-svg @benjeau/react-native-draw
install pod
cd ios && pod install && cd ..
add
<GestureHandlerRootView>
wrapper at App.tsximport "react-native-gesture-handler"
in both App.tsx and index.jsmodifiy App.tsx so that it matches the example
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
The text was updated successfully, but these errors were encountered: