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

    ambitious-knife-25690

    02/27/2020, 2:25 PM
    Sweet
  • a

    ambitious-knife-25690

    02/27/2020, 2:25 PM
    Now to delete the individual files I made yesterday x)
  • u

    user

    02/27/2020, 2:25 PM
    x)
  • a

    ambitious-knife-25690

    02/27/2020, 5:33 PM
    You can't do type inference with static inline var, can you?
  • u

    user

    02/28/2020, 8:12 AM
    static inline var Screen = TabNavigatorScreen
    will work fine (if TabNavigatorScreen is a ReactComponent) if that's what you ask
  • b

    bitter-family-72722

    02/28/2020, 2:19 PM
    shouldn't the channel title point to https://github.com/massiveinteractive/haxe-react ?
  • u

    user

    02/28/2020, 2:20 PM
    Or to https://github.com/kLabz/haxe-react :P
  • b

    bitter-family-72722

    02/28/2020, 2:21 PM
    urm... 😄
  • a

    ambitious-knife-25690

    02/28/2020, 2:24 PM
    @User It does 🤔
  • a

    ambitious-knife-25690

    02/28/2020, 2:24 PM
    Although KLabz is probably correct 😅
  • a

    ambitious-knife-25690

    02/28/2020, 2:25 PM
    I've only used klabz react for like the last 2 years lol
  • b

    bitter-family-72722

    02/28/2020, 2:32 PM
    I just changed it
  • b

    bitter-family-72722

    02/28/2020, 2:32 PM
    used to be haxe-react-native
  • a

    ambitious-knife-25690

    02/28/2020, 2:42 PM
    lol weird, i'm sure I added the link
  • a

    ambitious-knife-25690

    02/28/2020, 2:42 PM
    ah well, thanks :D
  • a

    ambitious-knife-25690

    02/28/2020, 2:48 PM
    I've just realised
  • a

    ambitious-knife-25690

    02/28/2020, 2:49 PM
    I spent extra time adding api comments to the ReactComponent externs
  • a

    ambitious-knife-25690

    02/28/2020, 2:49 PM
    🤦‍♂️
  • a

    ambitious-knife-25690

    02/28/2020, 2:49 PM
    JSX doesn't provide the tooltip 😣
  • b

    bitter-family-72722

    02/28/2020, 2:51 PM
    it's the thought that counts?
  • a

    ambitious-knife-25690

    03/03/2020, 2:42 PM
    @User So somehow my
    @:jsRequire
    was requiring auth but the issue I was having yesterday seems to be solvable by directly adding
    import "@react-native-firebase/auth";
    to the top of the main file
  • a

    ambitious-knife-25690

    03/03/2020, 2:42 PM
    Do you have any idea how to avoid having to add it manually via a macro? 🤔
  • u

    user

    03/03/2020, 2:43 PM
    Do you use the class you have this @:jsRequire on?
  • a

    ambitious-knife-25690

    03/03/2020, 2:43 PM
    Yes
  • u

    user

    03/03/2020, 2:44 PM
    If not I usually have a
    @:keep static var something = Webpack.require('blah')
  • u

    user

    03/03/2020, 2:44 PM
    That's strange =/
  • a

    ambitious-knife-25690

    03/03/2020, 2:44 PM
    The initial loading point of
    Firebase
    has
    @:jsRequire('@react-native-firebase/app', 'default')
    which works fine and is picked up
  • u

    user

    03/03/2020, 2:45 PM
    If it needs to be loaded earlier or something you can try the static var trick on your entrypoint
  • a

    ambitious-knife-25690

    03/03/2020, 2:46 PM
    It's just weird,
    @:jsRequire('@react-native-firebase/auth', 'default')
    is in the file, i've tried tagging it with
    @:keep
    (even though I am using the class anyway) but the require is not being imported in the output file
  • a

    ambitious-knife-25690

    03/03/2020, 2:49 PM
    WTF
1...434445...80Latest