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