Fork me on GitHub
#cljsrn
<
2018-03-15
>
joshmiller00:03:52

So, after further investigation, I can get my share extension to load as long as I call it by the name of my main app and register it by the name of my main app in the registry…

joshmiller00:03:22

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                      moduleName:@"AppName" // instead of AppNameShare
                                               initialProperties:nil
                                                   launchOptions:nil];

joshmiller00:03:00

(defn init
  []
  ; instead of "AppNameShare"
  (.registerComponent app-registry "AppName" #(r/reactify-component app-root)))

joshmiller00:03:44

To me it seems like those things should be equivalent; as long as I am consistent between them, it should work, but there must be some other name magic thing going on somewhere I haven’t found.

grounded_sage02:03:15

When you use {:style ... is that calling the StyleSheet api?

grounded_sage02:03:42

Oh I see style and stylesheet are different in React so it seems people don't use the Stylesheet option in any examples on the web.

joshmiller04:03:07

So I fixed my problem by splitting the app and share extensions into different JS builds… If anyone knows of a better solution I’m all ears.