onesignal-expo-plugin icon indicating copy to clipboard operation
onesignal-expo-plugin copied to clipboard

[question]: I keep getting this error after i updated the expo font in the app.json plugin

Open princechibez opened this issue 1 year ago • 1 comments

How can we help?

"plugins": [ "expo-router", "expo-font", { "fonts": [ "./assets/fonts/Rubik-Regular.ttf" ] } ],

OneSignal Expo SDK version

51

Platform

No response

Relevant log output

PluginError: Plugin is an unexpected type: object

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

princechibez avatar Jun 05 '24 06:06 princechibez

This is absolutely not related to onesignal-expo-plugin, but your plugin config is not correct. Take a look at the documentation : https://docs.expo.dev/versions/latest/sdk/font/

It should look like this :

"plugins": [
    "expo-router", 
    [ 
        "expo-font", 
         { 
             "fonts": [ "./assets/fonts/Rubik-Regular.ttf" ]
          }
    ]
],

mrrenaud avatar Jun 14 '24 18:06 mrrenaud