Skip to content
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

Compatibility with React Native 0.61.x #8

Open
benjarwar opened this issue Nov 20, 2019 · 0 comments
Open

Compatibility with React Native 0.61.x #8

benjarwar opened this issue Nov 20, 2019 · 0 comments

Comments

@benjarwar
Copy link

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:

  • Manually add Quikkly.xcodeproj to our app's Libraries in the main navigation of our Xcode project
  • Add libRNQuikkly.a to "Frameworks, Libraries, and Embedded Content"

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant