shenhuniurou/react-native-scroll-ruler

React/RCTViewManager.h' file not found

ArvindPrakashJoshi opened this issue · 2 comments

Just after linking this library I am getting this error:

React-Native : 0.59.5
React-Native-cli : 2.0.1

image_2019_08_16T12_38_44_703Z

@ArvindPrakashJoshi
Have a try this #import <React/RCTViewManager.h>

And I suggest that you do not install directly from npmjs, it's best to download the source code and then import your project, modify it to suit your requirements.

@shenhuniurou : #import <React/RCTViewManager.h> does not worked.

I have cloned your project and for the node modules I have performed rpm install. But this does not worked. Here is the complete rect info:

System:
OS: macOS 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 46.01 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.1 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 23, 25, 27
Build Tools: 23.0.1, 27.0.3
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.9 => 0.59.9
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1