This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-15
Channels
- # aatree (1)
- # atlanta-clojurians (3)
- # beginners (112)
- # boot (4)
- # boot-dev (1)
- # bristol-clojurians (1)
- # cider (55)
- # cljs-dev (23)
- # cljsjs (1)
- # cljsrn (7)
- # clojars (24)
- # clojure (84)
- # clojure-brasil (1)
- # clojure-china (1)
- # clojure-italy (27)
- # clojure-norway (17)
- # clojure-romania (1)
- # clojure-spec (109)
- # clojure-uk (92)
- # clojurescript (94)
- # community-development (1)
- # core-matrix (1)
- # cursive (12)
- # datascript (1)
- # datomic (23)
- # figwheel (1)
- # fulcro (17)
- # hoplon (11)
- # jobs-discuss (3)
- # keechma (6)
- # lein-figwheel (4)
- # leiningen (79)
- # lumo (32)
- # mount (42)
- # off-topic (22)
- # onyx (13)
- # parinfer (30)
- # portkey (47)
- # powderkeg (1)
- # programming-beginners (24)
- # protorepl (3)
- # re-frame (16)
- # reagent (100)
- # ring-swagger (7)
- # shadow-cljs (134)
- # spacemacs (3)
- # sql (1)
- # tools-deps (48)
- # uncomplicate (1)
- # unrepl (14)
- # yada (1)
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…
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"AppName" // instead of AppNameShare
initialProperties:nil
launchOptions:nil];
(defn init
[]
; instead of "AppNameShare"
(.registerComponent app-registry "AppName" #(r/reactify-component app-root)))
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.
When you use {:style ...
is that calling the StyleSheet
api?
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.
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.