ConduitMobileRND / react-native-scratch

Scratch view for react native
MIT License
2 stars 1 forks source link

'React/RCTViewManager.h' file not found #13

Closed bazingga08 closed 3 years ago

bazingga08 commented 3 years ago

@avinashlng1080 @comord @amitcomo @sutefan1

tried thishttps://github.com/ConduitMobileRND/react-native-scratch/issues/5#issuecomment-531897907 still not working unable to solve this issue for past couple of days can u pls help me in here ?

Screenshot 2020-10-15 at 1 53 14 PM Screenshot 2020-10-15 at 1 53 37 PM
sutefan1 commented 3 years ago

Hey @addepalli8 ,

as this module isn't prepared for +0.60 RN auto-linking (the podspec is missing for example) it needs some addition steps to finish the linking.

There is an open PR which solves the issue, but this needs to be approved and merged.

As long as this isn't happening, try this temporary solution:

  1. Unlink RN-Scratch by removing all parts from your xcode project and the pods
  2. Remove the node_module
  3. Remove it from the package json
  4. insert this link instead in the dependencies brackets: "react-native-scratch": "git+https://github.com/yannou788/react-native-scratch.git",
  5. run npm install and then cd ios && pod install
  6. Clean your xcode workspace/project and build it
  7. Run npm run ios and it should work (make sure you've terminated the packager before)

NOTE: This is a temporary solution as mentioned above. If the PR is merged, please change back to the official module. Additionally, if @yannou788 is changing anything in the PR or his fork, the module might be broken.

Hope this helps, sutefan1

jonathanroze commented 3 years ago

Thank you @sutefan1 it's work well !

Do you know how to make the "erase" rounded instead of square ? Thank :)

sutefan1 commented 3 years ago

@jonathanroze Glad I could help you out!

Do you know how to make the "erase" rounded instead of square ? Thank :)

I haven't looked into yet, but maybe this PR (https://github.com/ConduitMobileRND/react-native-scratch/pull/10) is helping you out, at least on android!