Giter Site home page Giter Site logo

Comments (7)

brenwarwcdg avatar brenwarwcdg commented on September 2, 2024 1

Recreating this issue in another project has made me realise I missed adding the new SharePackage() to protected List<ReactPackage> getPackages(). Closing issue now..

from react-native-share-extension.

alinz avatar alinz commented on September 2, 2024

Have you import the modules in either xcode or android studio? close function is an exported function coming from native side.

from react-native-share-extension.

brenwarwcdg avatar brenwarwcdg commented on September 2, 2024

This might be why it works on iOS and not Android. By import do you mean in the Build Settings for Xcode and via Gradle in Android Studio?

If so then yes, I've linked all the headers in Xcode and gradle has been set to package react-native-share-extension as required:

settings.gradle:

rootProject.name = 'ProjectName'
`include ':app', ':react-native-share-extension'`
project(':react-native-share-extension').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-share-extension/android')

It is also added as a dependency in build.gradle

It might be worth mentioning I run using react-native run-android

from react-native-share-extension.

alinz avatar alinz commented on September 2, 2024

have you read and apply all the required settings in here android doc. Also have you tried with sample project? Are you still getting an error? I think you missed one important things from doc, Check it again.

from react-native-share-extension.

brenwarwcdg avatar brenwarwcdg commented on September 2, 2024

Pretty sure I've applied all steps in the sample doc. Once I did it all I ran through Android Studio, which installed all the dependencies through gradle for me.

Also after trying to set up the project it seemed to halt on the device, refusing to open, but based off the example PROJECT everything looks fine..

from react-native-share-extension.

alinz avatar alinz commented on September 2, 2024

@brenwarwcdg if you can create an project example in github and send the url to me so I can debug it and see if I can find a solution for it. That's the only thing I can help you with.

from react-native-share-extension.

brenwarwcdg avatar brenwarwcdg commented on September 2, 2024

Thank you very much for offering. I'm porting it over now..

from react-native-share-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.