【问题标题】:Launching react-native-navigation screen from Android从 Android 启动 react-native-navigation 屏幕
【发布时间】:2020-04-03 11:11:40
【问题描述】:

有没有办法从 Android 端启动特定的 react-native-navigation 屏幕,例如有意图?

类似:

Intent intent = new Intent(this, RNNScreen.class);

【问题讨论】:

    标签: android react-native react-native-navigation


    【解决方案1】:

    可以注册一个fragment,然后在JS端用externalComponent消费它。看看External Component documentation

    【讨论】:

    • 感谢您的回复。我实际上想访问我在 JS 中创建的屏幕。但我会尝试相反的方式。
    猜你喜欢
    • 2020-06-29
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 2021-08-19
    • 2016-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多