MaxAst / expo-share-extension

Expo config plugin for creating iOS share extensions with a custom view.
MIT License
161 stars 4 forks source link

SplashScreen is not shown #2

Closed MaxAst closed 7 months ago

MaxAst commented 7 months ago

Despite

  1. copying the main app's SplashScreen.storyboard file into the share extension target
  2. adding it to the share extension target's pbxGroup
  3. adding it to the PBXResourcesBuildPhase phase
  4. and updating the share extension target's info.plist:
    ...
    <key>UILaunchStoryboardName</key>
    <string>SplashScreen</string>
    ...

I get this error when triggering the share extension:

Possible Unhandled Promise Rejection (id: 1):
Error: No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.
Error: No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.
    at construct (native)
    at Wrapper (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=expo.modules.shareextension.example.ShareExtension:26633:64)
    at construct (native)
    at _createSuperInternal (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=expo.modules.shareextension.example.ShareExtension:122502:322)
    at call (native)
    at CodedError (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=expo.modules.shareextension.example.ShareExtension:122515:26)