evollu / evollu/react-native-fcm

Text, title not passed to facebook

Open
#475 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

Text, title not passed to facebook . @evollu

What version of RN and react-native-fcm are you running?
"react-native": "0.44.0",
"react-native-fcm": "^7.3.0",

iOS simulator

app running in foreground

Advanced:
Have you tried adding break point in native handlers to see if message gets delivered? yes
options reach correctly upto NativeModules.RNShare.shareSingle

File: /node_modules/react-native-share/index.js Line 59:
static shareSingle(options){
if (Platform.OS === "ios" || Platform.OS === "android") {
return new Promise((resolve, reject) => {
NativeModules.RNShare.shareSingle(options,(e) => {
return reject({ error: e });
},(e) => {
return resolve({
message: e
});
});
});
} else {
throw new Exception("not implemented");
}
}
}

can share a project with issue? Yes
In following code, just url gets passed to facebook successfully.

let shareOptions = {
title: "Entertainment",
message: "Shared by Entertainment",
text: "Shared by Entertainment",
url: this.props.item.image_url,
subject: "Shared by Entertainment"
};
return(
{

Share.shareSingle(Object.assign(shareOptions, {
"social": "facebook"
}))
.catch(err=>console.log(err));
this.onCancel();

}}>Facebook
)
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.