trust-web3-provider icon indicating copy to clipboard operation
trust-web3-provider copied to clipboard

Is it used in reactnative? How does WebView inject this JS

Open AdelaDella opened this issue 3 years ago • 4 comments

Is it used in reactnative? How does WebView inject this JS

AdelaDella avatar May 08 '22 01:05 AdelaDella

i have the same question @RNHaoHao . did u find answer ?

sandys avatar Jul 06 '22 08:07 sandys

我也有同样的问题@RNHaoHao. 你找到答案了吗?

Have you solved it

AdelaDella avatar Aug 05 '22 09:08 AdelaDella

Easy!

  • Copy file trust-min.js to BundleAsset (android) or bundle (ios).
  • Use react-native-fs to load content file.
  • Use propsinjectedJavaScriptBeforeContentLoaded to inject content of the file trust-min.js to website

EnettyTech avatar Sep 08 '22 02:09 EnettyTech