【问题标题】:Is there way to get access to the JavaScriptCore context inside iOS from React Native native module?有没有办法从 React Native 本地模块访问 iOS 中的 JavaScriptCore 上下文?
【发布时间】:2021-03-09 15:20:06
【问题描述】:

我想在 iOS 上使用 React Native 的 JSC 上下文。

我发现了一些提及,但似乎不再是这种情况了 https://github.com/facebook/react-native/issues/14041
https://github.com/facebook/react-native/issues/1618#issuecomment-112275871

【问题讨论】:

    标签: ios react-native-ios javascriptcore


    【解决方案1】:

    你可以,但你必须使用 React Native 的原生模块系统将原生上下文包装到一个 JS 可访问的代理中。请参阅以下指南以供参考:

    【讨论】:

    猜你喜欢
    • 2023-01-13
    • 2011-02-09
    • 2021-04-03
    • 2011-07-14
    • 2015-05-03
    • 2022-10-20
    • 2021-04-08
    • 2020-06-08
    • 1970-01-01
    相关资源
    最近更新 更多