quikkly / react-native

React Native plugin for the Quikkly iOS and Android SDKs.
Apache License 2.0
3 stars 6 forks source link

Compatibility with React Native 0.61.x #8

Open benjarwar opened 4 years ago

benjarwar commented 4 years ago

Project installation docs for iOS and React Native 0.61.3 are insufficient. On pod install we get this warning, as the project lacks a Podspec file:

[!] use_native_modules! skipped the react-native dependency 'react-native-quikkly'. No podspec file was found.
    - Check to see if there is an updated version that contains the necessary podspec file
    - Contact the library maintainers or send them a PR to add a podspec. The react-native-webview podspec is a good example of a package.json driven podspec. See
    https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec
    - If necessary, you can disable autolinking for the dependency and link it manually. See
    https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library

To fix, we added this to react-native.config.js:

module.exports = {
  dependencies: {
    "react-native-quikkly": {
      platforms: {
        ios: null,
        android: null,
      },
    },
  },
};

But then received red screen errors at runtime:

Invariant Violation: requireNativeComponent: "QuikklyScanView" was not found in the UIManager

To fix, we had to:

The docs do not cover these steps, and react-native link react-native-quikkly was insufficient in this version of React Native.