Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Calling bridge.imageLoader is deprecated and will not work in newer versions of RN #571

@chenweigh

Description

@chenweigh

Run command

let uri = "/private/var/mobile/Containers/Data/Application/D0FC15EC-3194-4713-819F-32D9FD7FB5ED/tmp/ReactNative/64EB8583-905C-4C97-B485-8479EF4FF5E8.png"
let option = {
      type: 'imageFile',
      title: 'Test sharing',
      description: 'This is a test',
      imageUrl: "file://" + uri,
};
WeChat.shareToSession(option).then(()=>{}).catch(()=>{});

Problem

Calling bridge.imageLoader is deprecated and will not work in newer versions of RN. Please update to the moduleForClass API or turboModuleLookupDelegate API.

Environment

react: 16.11.0
react-native: 0.62.2
react-native-wechat: ^1.9.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions