https://linen.dev logo
Join DiscordCommunities
Powered by
# react
  • a

    ambitious-knife-25690

    09/17/2019, 1:45 PM
    Copy code
    haxe
    @:keep
    @:jsRequire('@react-native-firebase/firestore')
    extern class Firestore {}
    is my current definition for firestore
  • a

    ambitious-knife-25690

    09/17/2019, 1:47 PM
    For now i've got a hacky solution though so I can at least work on the project lol
  • c

    cool-psychiatrist-49311

    09/17/2019, 5:16 PM
    did you miss the "default"?
  • c

    cool-psychiatrist-49311

    09/17/2019, 5:16 PM
    @:jsRequire('@react-native-firebase/firestore', 'default')
  • c

    cool-psychiatrist-49311

    09/17/2019, 5:17 PM
    or
    @:jsRequire('@react-native-firebase/app', 'default')
  • c

    cool-psychiatrist-49311

    09/17/2019, 5:18 PM
    Usually I just look into the JS source and see how it is exported
  • a

    ambitious-knife-25690

    09/18/2019, 11:48 PM
    @cool-psychiatrist-49311 That's what I did in the message above yours 😅
  • a

    ambitious-knife-25690

    09/18/2019, 11:49 PM
    adding 'default' doesn't work because haxe seems to not export the require statement for some reason
  • a

    ambitious-knife-25690

    09/18/2019, 11:49 PM
    even with the
    @:keep
  • a

    ambitious-knife-25690

    09/18/2019, 11:50 PM
    For now my only solution is to include the imports using a macro
  • c

    cool-psychiatrist-49311

    09/19/2019, 3:54 AM
    Weird, perhaps you should file an issue
  • a

    ambitious-knife-25690

    09/19/2019, 7:27 AM
    With who?
  • c

    cool-psychiatrist-49311

    09/19/2019, 8:36 AM
    Haxe repo, because you said something is not generated properly
  • a

    ambitious-knife-25690

    09/19/2019, 10:40 AM
    I'm not really sure how I can make a minimum test case for this and I guess I'll need to test if it works on rc5
  • a

    ambitious-knife-25690

    09/19/2019, 10:40 AM
    But coconut/react next Requires rc3
  • u

    user

    09/19/2019, 12:21 PM
    react next works with 3.4.7
  • a

    ambitious-knife-25690

    09/19/2019, 12:32 PM
    I meant the combo requires rc3
  • u

    user

    09/19/2019, 12:38 PM
    Oh, didn't know coconut was 4.0 only (well, it's not really a surprise)
  • c

    cool-psychiatrist-49311

    09/26/2019, 4:16 PM
    I don't think coconut used any haxe4-only features. Even if so it shouldn't be intended. Please raise an issue for that.
  • a

    ambitious-knife-25690

    09/26/2019, 4:22 PM
    I never tried because I recall someone saying that the dependency combo for coconut and react-next were tight but I could be mis remembering
  • a

    ambitious-knife-25690

    09/26/2019, 4:23 PM
    As far as updating the modules I haven't tried yet because vshaxe lix only seems to let you update individual libraries and tink has so many I cba to go through that atm
  • a

    ambitious-knife-25690

    09/26/2019, 4:23 PM
    haha
  • a

    ambitious-knife-25690

    09/26/2019, 11:11 PM
    I tried upgrading the project to git tink/coconut and it does break the project with rc5
  • a

    ambitious-knife-25690

    09/26/2019, 11:12 PM
    It's the exact same codebase as what i'm using rc3 and the dependencies predefined in the example project
  • u

    user

    09/27/2019, 4:53 AM
    Try replacing
    __tink
    with
    __Tink
    here: https://github.com/haxetink/tink_macro/blob/4cb5ee41969ea4551bb6b5d471320f236acbb637/src/tink/MacroApi.hx#L48
  • a

    ambitious-knife-25690

    09/27/2019, 8:53 AM
    That fixed the tink errors
  • a

    ambitious-knife-25690

    09/27/2019, 8:53 AM
    Now i'm left with this
  • a

    ambitious-knife-25690

    09/27/2019, 8:53 AM
    returning
    jsx
    makes this issue worse
  • a

    ambitious-knife-25690

    09/27/2019, 8:53 AM
    changing to
    hxx
    leaves the above errors
  • u

    user

    09/27/2019, 8:54 AM
    Where's this
    @:native
    coming from? O_o
1...171819...80Latest