答案 0 :(得分:0)
在容器上,尝试<?php
add_action( 'pre_get_comments', function () { ?>
<div id="zergnet-widget-68695"></div>
<script language="javascript" type="text/javascript">
(function() {
var zergnet = document.createElement('script');
zergnet.type = 'text/javascript'; zergnet.async = true;
zergnet.src = (document.location.protocol == "https:" ? "https:" : "http:") + '//www.zergnet.com/zerg.js?id=68695';
var znscr = document.getElementsByTagName('script')[0];
znscr.parentNode.insertBefore(zergnet, znscr);
})();
</script>
<?php } );
答案 1 :(得分:0)
我使用此库https://github.com/beefe/react-native-actionsheet解决了该问题 我无法使用react share插件的UI使其正常工作。所以我在操作表中使用了此插件的方法:
setTimeout(() => {
Share.shareSingle(Object.assign({},shareOptions, {
"social": "facebook"
})).catch(err => console.log(err));
},300)