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

Error while running react-native-threads #80

Open
vedant-dobby opened this issue Sep 19, 2019 · 2 comments
Open

Error while running react-native-threads #80

vedant-dobby opened this issue Sep 19, 2019 · 2 comments

Comments

@vedant-dobby
Copy link

Hi I'm using React Native: 0.59.10 and Android 9. I have used Jetifier for new packages.
Whenever I'm using react-native run-android, I get the following error.

error: constructor RNThreadPackage in class RNThreadPackage cannot be applied to given types;
            new RNThreadPackage(),
            ^
  required: ReactNativeHost,ReactPackage[]
  found: no arguments
  reason: actual and formal argument lists differ in length
1 error

I'm guessing it has to do with something with the parameters of the constructor and is there a way to fix this temporarily.

@skdev24
Copy link

skdev24 commented Sep 24, 2019

I solved this issue by manual linking,

create a file name react-native.config.js and add the following code in this file,

// react-native.config.js
module.exports = {
  dependencies: {
    'react-native-threads': {
      platforms: {android: null},
    },
  },
};

Then follow the doc for manual linking procedure, that's it.

@minicuper
Copy link

#81

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

3 participants