Как я могу поделиться изображением с текстом на Whatsapp вactjs? - PullRequest
2 голосов
/ 07 марта 2019

Я пробовал sharethis-реагировать https://libraries.io/npm/sharethis-reactjs а также реагируют делятся https://www.npmjs.com/package/react-share.

Все, что я могу сделать, это отправить URL или какой-либо текст, я хочу отправить изображение с некоторым текстом (только изображение также подходит).

Ответы в интернете только на реактивный, я ищу решение в ответной реакции. Я создаю PWA, поэтому он будет работать на мобильных телефонах.

<InlineShareButtons
      config={{
        alignment: 'center',  // alignment of buttons (left, center, right)
        color: 'social',      // set the color of buttons (social, white)
        enabled: true,        // show/hide buttons (true, false)
        font_size: 16,        // font size for the buttons
        labels: 'cta',        // button labels (cta, counts, null)
        language: 'en',       // which language to use (see LANGUAGES)
        networks: [           // which networks to include (see SHARING NETWORKS)
          'whatsapp',
          'linkedin',
          'messenger',
          'facebook',
          'twitter'
        ],
        padding: 12,          // padding within buttons (INTEGER)
        radius: 4,            // the corner radius on each button (INTEGER)
        show_total: true,
        size: 40,             // the size of each button (INTEGER)

        // OPTIONAL PARAMETERS
        url: '', // (defaults to current url)
        image: '',  // (defaults to og:image or twitter:image)
        description: 'custom text',       // (defaults to og:description or twitter:description)
        title: 'custom title',            // (defaults to og:title or twitter:title)
        message: 'custom email text',     // (only for email sharing)
        subject: 'custom email subject',  // (only for email sharing)
        username: 'custom twitter handle' // (only for twitter sharing)
      }}
    />

Может кто-нибудь сказать мне, что я могу ввести на изображении = "", чтобы поделиться изображением или любым другим способом поделиться изображением в реакции js

...