我在 Expo 中找不到任何关于设置 One signal 的信息

I cannot find anything on setting up One signal in Expo

我对 React Native 开发很陌生。我正在使用 Expo 进行开发。我需要 IOS 和 Android 中的一个推送通知信号,但我找不到关于它的正确信息。有人可以帮我解决这个问题吗?

那是因为 Expo 不支持 OneSignal

来自 OneSignal 的第一页 documentation for react-native

If you are building an Expo project, please note that we have recently updated the SDK so that it will no longer crash when you add OneSignal as a dependency inside Expo's development environment. However, please note that until you detach from Expo and link OneSignal's native SDK's (along with React Native's own dependencies), any calls to OneSignal functions will be unused.

如果您想使用 OneSignal,则必须 eject 您的 Expo 应用程序。

您可以在终端中按运行 expo eject弹出。