react-native 相当于 TelephonyManager 中的原生事件调用,如 CALL_STATE_OFFHOOK

react-native equivalent to native event calls like CALL_STATE_OFFHOOK in TelephonyManager

我正在学习 React Native 并完成了 official react native tutorial

我还不清楚的是,如何利用本机功能并实现本机事件,例如,

  1. 监听通话是否结束的事件
  2. 打开相机拍照
  3. 正在激活 GPS 并获取坐标 ...等等

我在之前发布的官方教程link中没有找到任何这些痕迹。此外,在 end of the tutorial in this page 它说

The folks who built the app for Facebook's F8 conference in 2016 also open-sourced the code and wrote up a detailed series of tutorials. This is useful if you want a more in-depth example that's more realistic than most sample apps out there.

但在那里也找不到例子。,

请解释为什么我在这里遗漏了什么?

我认为 React native 专注于创建 UI.To 访问 phone 的硬件,您必须使用插件,查看 JS.coach https://js.coach/ 并搜索例如,如果您需要与相机有关的内容,请输入相机类型。