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

Can we implement auto-linking please? Here are the instructions: #43

Open
benjaminharringtonrose opened this issue Apr 20, 2023 · 4 comments

Comments

@benjaminharringtonrose
Copy link

It should be as easy as this:
Add a new file called react-native.config.js

in that file, add:

module.exports = {
  dependency: {
    platforms: {
      android: {
        packageImportPath:
          "import com.github.amarcruz.rntextsize.RNTextSizePackage;",
        packageInstance: "new RNTextSizePackage()",
      },
      ios: {
        podspecPath: "ios/RNTextSize.podspec",
      },
    },
  },
};

And I'm pretty sure that's it. I can create a PR if you give me access! Thanks!

@benjaminharringtonrose
Copy link
Author

Actually, you'll need to move your pod spec file to the root, and then change the podSpecPath to RNTextSize.podspec. I did it and created my own repo and it worked

@mkultr4
Copy link

mkultr4 commented May 5, 2023

@benjaminharringtonrose can you provide an example how ?

@benjaminharringtonrose
Copy link
Author

Yeah, go take a look at the repo on my GitHub!!!

@mkultr4
Copy link

mkultr4 commented May 10, 2023

@benjaminharringtonrose can you explain how to install it in a native expo/react project?

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

2 participants