Code Monkey home page Code Monkey logo

react-native-social-share's Introduction

React Native Social Share

Use the built-in share view from iOS and Android to let the user share on Facebook and Twitter. It will use the user's existing account without having to get new authorizations. You can even preset text, image and link for the share view.

In other words a React Native wrapper for the SLComposeViewController

Support for Android

27 Feb 2017 - @minhtule has made improvements to sharing on Android

10 Feb 2017 - @Jberlinsky has added support for Android

Let me know how it works.

Animation

Getting started

  1. npm install react-native-social-share --save
  2. react-native link
  3. In XCode, in the project navigator right click LibrariesAdd Files to [your project's name]
  4. Go to node_modulesreact-native-social-share➜ iOS and add KDSocialShare.h and KDSocialShare.m
  5. Go to your project's Build PhasesLink Binary With Libraries phase
  6. Add Social.framework to ➜ Link Binary With Libraries build phase of your project (click the '+' and search for 'social').
  7. Add 'LSApplicationQueriesSchemes' key (Type: Array) with items (Type: String) 'fb' and 'twitter' to Info.plist of your project
  8. Run your project (Cmd+R)

Now you can implement the share popups in your react native code.

Example of implementation

First you should make the native implementation available in the react code by inserting the following line in the top of the file

import {
  shareOnFacebook,
  shareOnTwitter,
} from 'react-native-social-share';

After doing that you will be able to popup the share views from your own functions. I made two examples below, one for Facebook and one for Twitter

  tweet : function() {

    shareOnTwitter({
        'text':'Global democratized marketplace for art',
        'link':'https://artboost.com/',
        'imagelink':'https://artboost.com/apple-touch-icon-144x144.png',
        //or use image
        'image': 'artboost-icon',
      },
      (results) => {
        console.log(results);
      }
    );
  },

  facebookShare : function() {

    shareOnFacebook({
        'text':'Global democratized marketplace for art',
        'link':'https://artboost.com/',
        'imagelink':'https://artboost.com/apple-touch-icon-144x144.png',
        //or use image
        'image': 'artboost-icon',
      },
      (results) => {
        console.log(results);
      }
    );
  },

The two implementations take the following parameters

  • shareOnFacebook(options [object], callback [function])
  • shareOnTwitter(options [object], callback [function])

IMPORTANT Both the options object and the callback function needs to be set. The options object can be empty though if you do not want to preset any of the possible options.

Options

The options object lets you pre-populate the share view for the user. You can use the following parameters:

Parameter Desciption
text Sets the initial text of the message on the SLComposeViewController instance.
imagelink Adds an image file from the given publicly available URL as attachments to the message.
image Adds an image file from the xcode image assets. image takes priority over imagelink. Only one out of two will load.
link Adds a URL to the message. The method automatically handles the URL shortening.

At least the text or link parameter must be specified

Special Case: Facebook on Android

Due to various known problems with Facebook's implementation of Android Intents, sharing with Facebook on Android can only be done in two ways:

  1. If the user has the Facebook application installed, and the text parameter is provided; or
  2. If the link parameter is provided.

Only one of the link or text parameter can be passed to the shareWithFacebook method on Android devices. Image parameters are ignored entirely.

We recommend using the official Facebook SDK to perform more complex sharing operations on Android.

Callback

The callback function runs when the native environment has information for the react environment. Note that some callbacks are only available on iOS due to platform limitations

Callback Desciption iOS Android
"success" Native call made by the viewController - SLComposeViewControllerResultDone – The user sent the composed message by touching the Send button. Yes No
"cancelled" Native call made by the viewController - SLComposeViewControllerResultCancelled – The user cancelled the composition session by touching the Cancel button. Yes No
"not_available" The selected service eg. Facebook, is not available. This can be because the user has not signed in to Facebook on the device or maybe there is no internet access. Yes No (Android functionality falls back to web views)
"missing_link_or_text" Neither the link nor text parameter was provided Yes Yes

You can use these callbacks to present alerts to the user. For example tell the user to login to a certain service.

The full example code

'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  TouchableHighlight,
} = React;

import {
  shareOnFacebook,
  shareOnTwitter,
} from 'react-native-social-share';


var ReactNativeSocialShare = React.createClass({

  tweet : function() {

    shareOnTwitter({
        'text':'Global democratized marketplace for art',
        'link':'https://artboost.com/',
        'imagelink':'https://artboost.com/apple-touch-icon-144x144.png',
        //or use image
        'image': 'artboost-icon',
      },
      (results) => {
        console.log(results);
      }
    );
  },

  facebookShare : function() {

    shareOnFacebook({
        'text':'Global democratized marketplace for art',
        'link':'https://artboost.com/',
        'imagelink':'https://artboost.com/apple-touch-icon-144x144.png',
        //or use image
        'image': 'artboost-icon',
      },
      (results) => {
        console.log(results);
      }
    );
  },


  render: function() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>
          Twitter and Facebook share
        </Text>

        <Text style={styles.instructions}>
          Try tapping one of the buttons
        </Text>

        <View style={styles.seperator}/>

        <TouchableHighlight onPress={this.tweet}>
          <View style={{alignItems: 'center',justifyContent:'center', width: 150, height: 50,backgroundColor:'#00aced'}}>
           <Text style={{color:'#ffffff',fontWeight:'800',}}>Share on Twitter</Text>
          </View>
        </TouchableHighlight>

        <View style={styles.seperator}/>

        <TouchableHighlight onPress={this.facebookShare}>
          <View style={{alignItems: 'center',justifyContent:'center', width: 150, height: 50,backgroundColor:'#3b5998'}}>
           <Text style={{color:'#ffffff',fontWeight:'800',}}>Share on Facebook</Text>
          </View>
        </TouchableHighlight>
      </View>


    );
  }
});

var styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  seperator:{
    marginBottom: 20
  }
});

AppRegistry.registerComponent('ReactNativeSocialShare', () => ReactNativeSocialShare);

Done

Screenshot

Who is using it

Your contributions and suggestions are welcome.

react-native-social-share's People

Contributors

aljs avatar ariiyu avatar bericp1 avatar chirag04 avatar dhyegocalota avatar dkfl1995 avatar doefler avatar hiaw avatar jberlinsky avatar ma96o avatar minhtule avatar skv-headless avatar tamago3keran avatar techieshark avatar udfalkso avatar westleyargentum avatar zerazeru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-social-share's Issues

Video Sharing

How could I share a video (video link) instead of sharing image link?

KDSocialShare is not abstract and does not override abstract method createJSModules(

Followed the guidelines to readme.

:react-native-social-share:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/shrikantsonone/AskDOSS/doss.askdoss.homesearch.mobile/consumer_app/Homesearch/node_modules/react-native-social-share/android/src/main/java/com/barefootcoders/android/react/KDSocialShare/KDSocialShare.java:15: error: KDSocialShare is not abstract and does not override abstract method createJSModules() in ReactPackage
public class KDSocialShare implements ReactPackage {
       ^
1 error
:react-native-social-share:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-social-share:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 19.397 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

android build failed with error

:react-native-social-share:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
**[MY ROOT]**/node_modules/react-native-social-share/android/src/main/java/com/barefootcoders/android/react/KDSocialShare/KDSocialShare.java:27: error: method does not override or implement a method from a supertype
    @Override
    ^
1 error
:react-native-social-share:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-social-share:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

How to solve this problem ?

Thanks

Cannot read property 'tweet' of undefined

Hi Kim,
I am using your repo for my project.
I've implemented exactly what you instruction in README file ( the new one),
but when I click Tweet button, it raised the error 'Cannot read Property 'tweet' of undefined.

Can you help me to resolve it?

Path name for Assets library?

Can I assign the direct path of assets-library, for example: assets-library://asset/asset.JPG?id=C4E468CC-3B82-4822-8FEE-BA1C1DC47B4B&ext=JPG, or do I have to assign the filename from there?

Android Error

I've an error while trying to share via Facebook or Twitter on an Android device (iOS ok):

captura de pantalla 2017-03-22 a las 16 53 34

_shareOnFacebook() { shareOnFacebook({ 'link':'https://artboost.com/' }, (results) => { console.log(results); } ); }
Maybe I've skipped something in the documentation?

Predefined text not populating the Facebook share dialog?

Hi, thanks for this plugin. Just been trying it out, looks good but noticed that I cannot preset the text in the popup. It always defaults to two newlines then the URL that was passed in. Any ideas?

Also, small readme error; the parameters lists 'text' twice rather than 'imagelink' for the third parameter :)

Can't install this module for ios

Description

Hi. It is very interesting module and I want to integrate it into my app, but can't.
I followed all the instructions in README.md:

  1. yarn add react-native-social-share -E
  2. react-native link react-native-social-share
  3. Add KDSocialShare.h & KDSocialShare.m to Libraries of my project target
  4. Add Social.framework to my project target
  5. And add LSApplicationQueriesSchemes to Info.plist with fb and twitter values
    Then I ran react-native run-ios or CMD+R in xcode.

First error is

  • 'RCTRootView.h' file not found on 12 line of Libraries/ReactNativeSocialShare.xcodeproj/ReactNativeSocialShare/AppDelegate.m

Solution: #import "RCTRootView.h" could be replaced to #import <React/RCTRootView.h> and this error disappears.

Go further. Next error after "fix" is

  • No visible @interface for 'RCTRootView' declares the selector 'initWithBundleURL:moduleName:launchOptions:'

Solution: Last error disappears after adding initialProperties:nil to rootView declaration in ReactNativeSocialShare/AppDelegate.m, because interface doesn't seems to be identical with used.

Further. Appears another error

  • ld: library not found for -lRCTWebSocketDebugger clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution: As I seen in previous issues I need to remove RCTWebSocketDebugger from Build Phases -> Link Binary from Libraries of ReactNativeSocialShare.xcodeproj.

After latest "fix" another error has appeared

  • ld: library not found for -lRCTAdSupport clang: error: linker command failed with exit code 1 (use -v to see invocation) and if remove this binary from "Linking" then appears 155 errors.

Solution: not found 😞

I believe it is wrong way.
Neither I am doing something wrong nor I don't understand the manual and could you, please, go me through the manual?

P.S.

I'm using cocoapods, but it's not matter, because I tried with clear react-native init ProjectName and got the same errors.

Versions:

    "react": "16.3.1",
    "react-native": "0.55.1",
    "react-native-social-share": "1.6.1",

package.json

{
  "name": "GlamAndGo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "remotedev": "remotedev-debugger --injectserver",
    "test": "jest",
    "postinstall": "npm run remotedev && rndebugger-open"
  },
  "dependencies": {
    "credit-card-type": "7.0.0",
    "lodash": "4.17.5",
    "mobx": "4.1.1",
    "mobx-react": "5.0.0",
    "moment": "2.22.1",
    "normalizr": "3.2.4",
    "qs": "6.5.1",
    "react": "16.3.1",
    "react-native": "0.55.1",
    "react-native-blur": "3.2.2",
    "react-native-calendar-events": "1.6.0",
    "react-native-datepicker": "1.7.2",
    "react-native-iphone-x-helper": "1.0.3",
    "react-native-keyboard-aware-scroll-view": "0.5.0",
    "react-native-maps": "0.21.0",
    "react-native-sentry": "0.37.0",
    "react-native-smart-splash-screen": "2.3.5",
    "react-native-social-share": "1.6.1",
    "react-native-svg": "6.3.1",
    "react-native-text-input-mask": "0.7.0",
    "react-native-xml2js": "^1.0.3",
    "react-navigation": "1.5.11",
    "react-redux": "5.0.7",
    "redux": "3.7.2",
    "redux-api-middleware": "2.3.0",
    "redux-persist": "5.9.1",
    "redux-saga": "0.16.0",
    "redux-thunk": "2.2.0",
    "reselect": "3.0.1",
    "validate.js": "0.12.0"
  },
  "devDependencies": {
    "babel-jest": "22.4.3",
    "babel-preset-react-native": "4.0.0",
    "flow-bin": "0.67.1",
    "jest": "22.4.3",
    "react-native-debugger-open": "0.3.17",
    "react-test-renderer": "16.3.1",
    "reactotron-react-native": "1.14.0",
    "reactotron-redux": "1.13.0",
    "redux-logger": "3.0.6",
    "remote-redux-devtools": "0.5.12",
    "remotedev-rn-debugger": "0.8.3",
    "uws": "9.148.0"
  },
  "jest": {
    "preset": "react-native"
  },
  "remotedev": {
    "hostname": "localhost",
    "port": 5678
  },
  "rnpm": {
    "assets": [
      "./assets/fonts/"
    ]
  }
}

Android Support

Is there any chance you will extend this to work on Android as well?

Thanks!

drop peer dependencies

Can you drop peer dependency on react-native in package.json and let the host project dictate which react-native version to use?

Social share is not using anything specific to any react-native version. It is safe to remove peer deps i think.

No text on Facebook share?

Although I provide text for a Facebook share in the code:

facebookShare : function() {
shareOnFacebook({
'text':'7Questions: ',
'image': '7QLogo400',
},
(results) => {
console.log(results);
}
);
},

The image shows up, but the text does not:

img_0245

Problem with libRCTWebSocketDebugger with iOS

I have this problem with xcode when i try to build :

ld: warning: directory not found for option '-L/Users/Hugo/Library/Developer/Xcode/DerivedData/enedis_amc-bmoemlhdwgrsixdkaouixpdaxutl/Build/Products/Debug-iphonesimulator/React'
ld: library not found for -lRCTWebSocketDebugger
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Do you already have this ?

Thanks

"react-native": "0.51.0",
"react-native-social-share": "^1.5.0",

Tweet callback says `success` but tweet failed to send

If you have the Twitter app installed but are not logged in and try and use the KDSocialShare.tweet function it says it was a success but when I go into Twitter to check my feed I'm prompted immediately that the tweet failed to send.

The callback should return an error at the very least so to correctly notify the user. Ideally it would bring back what the error was from Twitter.

Unable to share on Facebook and Twitter with react-native-social-share in iOS

Hey @doefler ,

All things are working fine in Android and in iOS not working. very strange.

I am unable to get success on facebook and twitter sharing. I have follow all instructions which you mentioned at : https://github.com/doefler/react-native-social-share. when I click on twitter and facebook function like
shareOnTwitter({
'text':'Global democratized marketplace for art',
'link':'https://artboost.com/',
'imagelink':'https://artboost.com/apple-touch-icon-144x144.png',
//or use image
'image': 'artboost-icon',
},
(results) => {
console.log(results);
}
);
},
then getting below error-
2018-05-24 12:27:35.804288+0530 AppOfChanges[332:27691] -canOpenURL: failed for URL: "twitter://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2018-05-24 12:27:35.806 [info][tid:com.facebook.react.JavaScript] not_available
2018-05-24 12:27:35.805769+0530 AppOfChanges[332:30147] not_available

and same thing getting in facebook function.
Configration details:
"react-native": "0.55.4",
Working on - iOS 10.3.3

I have tried a lot but nothing getting any success , could you please help me on this.

default facebook text message

Hello, thank you @doefler for this component

I tested to share using my device and it works properly with Twitter, but I can not set a default text message with Facebook.

                KDSocialShare.shareOnFacebook({
                    'text':'Download the app',
                    'link':'http://google.com/',
                  },
                  (results) => {
                    console.log(results);
                  }
                );

img_0752

"Download the app" doesn't appear on Facebook share dialog

React-Native 0.17.0
iOS 9.2
nodejs v5.1.1
XCode 7.2

ios build failed (Linker Command Fail)

First of all thank you for this great library.

I am having a hard time configuring it due to build failures on iOS:
I have done everything as readme suggests (react-native link, linking libraries in xcode...), and whenever I try to build (either xcode or terminal) I get the following error:

Apple Match-O Linker Error: Linker command failed with exit code 1
social-share-problem

I also want to mention that the files inside the Libraries folder are missing (even after reinstalling a couple of times) as you can see on the image below. This problem was mentioned also in issue #22
social-share-problem-2

I have tried the following:

  • Cleaning the project and rebuilding
  • Removing the files and re-linking
  • Reinstalling the library

System Information and Development Environment
react: 16.0.0-alpha.12
react-native: 0.45.1
Simulator: iphone6

I am looking forward for any solution or any way I can be helpful. Thank you in advance.

Android tweet share uses the webbrowser in the emulator (Not an error, Explanation inside)

Hi there,
Firstly I'd like to say that I really like the library you guys have built. The main problem I'm having is that when I click "share on twitter", it opens up the chrome browser on my emulator and sets up the tweet over there. On the README, you guys have it showing a popup within the app where you can send the tweet. Is this just because I'm on an Android emulator, or am I missing something? Please help. Thank you.

Share without the dialog?

I was wondering if there's any way to implement social share without the dialog. Could I somehow just pass the parameters and perform share?

iOS Issue When Calling Tweet From Modal

I'm using SocialShare on both iOS and Android for the Twitter side of Social integration (using the FBSDK for that piece), and have found that on iOS the Twitter dialog box doesn't doesn't appear if my tweet function is called from a button in a Modal.

If I put a flat button on the screen it will work every time, but in a Modal it doesn't.

At this point I've disabled the modals that see if people want to post to social media, but that's really disappointing since it's a great way to prompt people when certain events happen.

Has anyone else run into this?

Cheers!
-Connor

Unable to share images or view text on iOS

The following code produces a blank screen:

facebookShare = () => {
		shareOnFacebook({
        'text':'Global democratized marketplace for art',
        'link':'',
        'imagelink': 'https://storage.googleapis.com/bookshelf-today/august/AUG-16.png',
      },
      (results) => {
        console.log(results);
      }
    );
  }

The text and imagelink fields don't seem to work.

Facebook Message not showing

Hi,

I shared the content in facebook. But in facebook it shows ip address instead of actual message i shared. Please help me.

Thanks! in advance..

Share functionality not working on simulator

Hey thanks for the plugin, I just tried using it but it didn't work on the iOS Simulator (iOS 8.3) after some searching around I found this on stackoverflow! which suggested to comment out

  if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {

and

     if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) {

and that fixed it, is there something we can do to get it to work on both Simulator and device or can we just comment out those lines

Libraries miss

Hello, i was according to document : npm install react-native-social-share --save, but miss Libraries file.
image, How can i do? Thanks!

Is not visible inside <Modal>

I'm trying to use this component inside a modal, but it does not appear on top of the modal. When I move the buttons to the rootview it works fine.

Thanks for any help with this.

Question: Success popup for Facebook post

The popup that shows when you make a successful Facebook post:

image

Couple questions:

  1. Why doesn't it do this when you post to Twitter?
  2. I'd like to use this sort of animation/confirmation for other things in the app to keep a consistent UX. Is this a separate component and if so, do you know how I could use it? At the very least, I'd like to disable it so I could create a custom one for all of the features in my app. Thanks!

Exception '-[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread

CrashlyticsReactLogFunction_block_invoke line 203 $ REACT LOG: 2016-05-06 19:32:46.904 [fatal][tid:com.facebook.React.KDSocialShareQueue] Exception '-[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread.' was thrown while invoking shareOnFacebook on target KDSocialShare with params

Seems like there is an intermittent issue when calling these methods. If the method is run off the main queue there is an error thrown. Adding

- (dispatch_queue_t)methodQueue
{
  return dispatch_get_main_queue();
}

...to KDSocialShare.m seems to have resolved this intermittent crash. It's a small fix I can create a PR but not sure I fully understand the issue since the rest seems to be closed source.

Unable to load native module

This is on iOS, React Native v0.41.2, using react-native-social-share v1.0.0.

I'm trying to use this module to share directly to Twitter. I keep getting, "undefined is not an object (evaluating 'KDSocialShare.tweet')

I dug into it a bit more, and it looks like react-native-social-share.js is assuming it's able to load the native module. So I was curious why the native module wasn't loading.

I looked in the .xcodeproj file that came down with the module, and it doesn't have a library target like the other react native modules that I'm using have:

screen shot 2017-03-01 at 2 12 15 pm

Which means in the Link Library with Binaries phase, there's no .a file to link to, which would mean that the class never gets built into the app.

I can create this target and add it to the project then PR it back in, but I'm wondering why it's not there to begin with and how everyone else is getting this to work.

I installed this by following the instructions in the readme (e.g. react-native link)

Can anyone shed some light?

no visible @interface

I keep getting No visible @interface for 'RCTRootView' declares the selector 'initWithBundleURL:moduleName:launchOptions:'

I have reinstalled the library and started a new project to test it. The error message comes up when I go to click on an action like "tweet".

"dependencies": { "react": "^0.14.8", "react-native": "^0.25.1", "react-native-social-share": "^0.7.0" }

Android: The SDK Build Tools revision (23.0.1) is too low for project ':react-native-social-share'. Minimum required is 25.0.0

I am getting this error because of buildToolsVersion in this line:
https://github.com/doefler/react-native-social-share/blob/master/android/build.gradle#L5

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-social-share'.
      > The SDK Build Tools revision (23.0.1) is too low for project ':react-native-social-share'. Minimum required is 25.0.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.566 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

Versions:

"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-social-share": "^1.0.0",

after upgrading buildToolsVersion to:

buildToolsVersion '25.0.0'

The error was fixed.

Should you guys update this in your repo?
This file is in node_modules, and everyone who npm install will get this error.

Unable to pic image in case of facebook

I am using react-native-social-share on emulator it working fine for both twitter and Facebook ,
but on device twitter is working fine , but i am unable to post image on Facebook , bCoz, its unable to select image , it not coming to dialog . Here i mentioned the code i am using.

KDSocialShare.shareOnFacebook({
'text': "Abc",
'link':'https://www.google.co.in/',
'imagelink': 'http://www.w3schools.com/images/w3schools_green.jpg',
},
(results) => {

  }
);

Thanks In Advance

Facebook 'text' property not working with FB version 59.0.0.51.142

I'm using KDSocialShare in my app, but unfortunately, it appears that Facebook may have changed how it interfaces with SLComposeViewController?

The Twitter integration is still working correctly & the message loads correctly for Facebook in the Simulator.

Any help would be appreciated.
-Darren

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.