ConduitMobileRND / react-native-scratch

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

Not working on iOS #5

Open EnnamWigroup opened 5 years ago

EnnamWigroup commented 5 years ago

Hi,

Please note both react-native link react-native-scratch and manual installation are not working for ios.

Issue that we are currently experiencing are as follows :

**_ild/Intermediates.noindex/RNScratch.build/Debug-iphonesimulator/RNScratch.build/Objects-normal/x86_64/RNTScratchViewManager.o /Users/userxxx/scratch/node_modules/react-native-scratch/ios/RNTScratchViewManager.m:3:9: fatal error: 'React/RCTViewManager.h' file not found

import <React/RCTViewManager.h>_**

__ Steps to reproduce :

  1. Create new project
  2. npm install react-native-scratch --save
  3. react-native link react-native-scratch
  4. cd ios and pod install
  5. react-native run-is
avinashlng1080 commented 5 years ago

Hello,

This module works perfectly on Android but not on iOS. Can you please let us know if your project actually works with the below : "react": "16.8.3", "react-native": "0.59.8", Thanks

ozankasikci commented 5 years ago

Hello,

I'm having the same error using; "react": "16.8.3", "react-native": "0.59.10".

Tried react-native link & manual linking none of them has worked.

avinashlng1080 commented 5 years ago

@ozankasikci , I managed to get it to work.

Just follow the installation instruction as normal.

Then, simply copy the ' ios ' folder from ~/node_modules/react-native-scratch into your own project( open up your project's workspace on xcode and create a folder 'react-native-scratch' and paste all of the copied contents there.

That's all. In your react-native project, on JS side, simply import the module still from 'react-native-scratch.

Use it as per the guide.

The only thing that changed on iOS side is that we've moved this lib's iOS source files into our own iOS project.

It might be that some references broke and that's why it isn't working on the latest react-native version

ozankasikci commented 5 years ago

@avinashlng1080 thanks for the quick reply, by installation instruction are you referring to manual installation?

avinashlng1080 commented 5 years ago

Nope - automatic installation. Then follow the guide to see how to use it in your project.

ozankasikci commented 4 years ago

Thanks, got it working!

guvenkaranfil commented 4 years ago

@avinashlng1080 Hi I couldn't get it working on android. Getting this error 'requireNativeComponent: "RNTScratchView" was not found in the UIManager'. any idea how can resolve this issue on android?

MacOs High Sierra 10.13.6 React: 16.8.3 React-Native : 0.59.10

luisorduz commented 4 years ago

@avinashlng1080 thanks for the quick reply, by installation instruction are you referring to manual installation?

Thanks, got it working!

I don't get it to work for react native 0.61.5, please help me with some instructions Screen Shot 2020-01-28 at 10 20 15 AM

sutefan1 commented 3 years ago

@avinashlng1080 thanks for the quick reply, by installation instruction are you referring to manual installation?

Thanks, got it working!

I don't get it to work for react native 0.61.5, please help me with some instructions Screen Shot 2020-01-28 at 10 20 15 AM

As you're over RN 0.60, try this out (https://github.com/ConduitMobileRND/react-native-scratch/issues/8#issuecomment-699642534)