From 1e291a5dbba71223f9dc3a5435b3165c62a3ff08 Mon Sep 17 00:00:00 2001 From: LuD1161 Date: Sun, 27 Sep 2020 13:38:45 +0530 Subject: [PATCH] Fixed id param for useCustomTweetExtended --- src/Twitter/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Twitter/index.tsx b/src/Twitter/index.tsx index 6b45473..a75c5d4 100644 --- a/src/Twitter/index.tsx +++ b/src/Twitter/index.tsx @@ -36,7 +36,6 @@ interface PropsType { export const Twitter = (props: PropsType) => { const { - id, language, onHashTagPress, onLinkPress, @@ -49,6 +48,7 @@ export const Twitter = (props: PropsType) => { onTweetPress, useCustomTweetExtendedData, } = props; + var id = props.id; const appearance = darkMode ? "dark" : "light"; const [data, setData] = React.useState(null); React.useEffect(() => { @@ -63,6 +63,9 @@ export const Twitter = (props: PropsType) => { if (!data) { return null; } + if (useCustomTweetExtendedData) { + id = useCustomTweetExtendedData.id_str; + } const styles = evaluateTheme(appearance); return (