1const html =`<p>hogehogehoge<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Fighting systemic barriers to opportunity means redefining business as usual. We're thrilled to open applications to our Impact Accelerator for Black- and Brown-owned businesses addressing environmental challenges. Learn more about it here: <a href="https://t.co/yEdTYZChBF">https://t.co/yEdTYZChBF</a></p>— Tim Cook (@tim_cook) <a href="https://twitter.com/tim_cook/status/1356255509494394882?ref_src=twsrc%5Etfw">February 1, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>hogehogehoge</p>`23exportdefaultfunctionApp(){4const content = html;5return(6<View>7<ScrollView contentContainerStyle={styles.scrollContentContainer}>8<HTML9 source={{ html: content }}10 renderers={{11blockquote:(htmlAttribs, children, styles, passProps)=>{12if(htmlAttribs.class=='twitter-tweet'){13constJS='<script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>';14const html =domNodeToHTMLString(passProps.domNode);15const source = html +JS;16return(17<View>18<WebView19 scrollEnabled={false}20 source={{ html: source }}21 javaScriptEnabled={true}22/>23</View>24);25}else{26return<View style={styles.blockquote}>{children}</View>;27}28},29}}30/>31</ScrollView>32</View>33);34}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。