react-native-text-size icon indicating copy to clipboard operation
react-native-text-size copied to clipboard

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

Open benjaminharringtonrose opened this issue 1 year ago • 5 comments

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 avatar Apr 20 '23 22:04 benjaminharringtonrose

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

benjaminharringtonrose avatar Apr 21 '23 20:04 benjaminharringtonrose

@benjaminharringtonrose can you provide an example how ?

mkultr4 avatar May 05 '23 10:05 mkultr4

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

benjaminharringtonrose avatar May 05 '23 17:05 benjaminharringtonrose

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

mkultr4 avatar May 10 '23 11:05 mkultr4