Skip to content

Commit 466e429

Browse files
author
PierreCapo
authored
Merge pull request #6 from LuD1161/master
Fixed id param for useCustomTweetExtended
2 parents 759949d + 1e291a5 commit 466e429

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Twitter/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ interface PropsType {
3636

3737
export const Twitter = (props: PropsType) => {
3838
const {
39-
id,
4039
language,
4140
onHashTagPress,
4241
onLinkPress,
@@ -49,6 +48,7 @@ export const Twitter = (props: PropsType) => {
4948
onTweetPress,
5049
useCustomTweetExtendedData,
5150
} = props;
51+
var id = props.id;
5252
const appearance = darkMode ? "dark" : "light";
5353
const [data, setData] = React.useState<ITwitterPost | null>(null);
5454
React.useEffect(() => {
@@ -63,6 +63,9 @@ export const Twitter = (props: PropsType) => {
6363
if (!data) {
6464
return null;
6565
}
66+
if (useCustomTweetExtendedData) {
67+
id = useCustomTweetExtendedData.id_str;
68+
}
6669
const styles = evaluateTheme(appearance);
6770

6871
return (

0 commit comments

Comments
 (0)