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

    bitter-family-72722

    07/31/2019, 4:15 PM
    generating?
  • a

    ambitious-knife-25690

    07/31/2019, 4:16 PM
    they're meant to be manually created?
  • b

    bitter-family-72722

    07/31/2019, 4:17 PM
    maybe you need
    --save
    https://stackoverflow.com/questions/19578796/what-is-the-save-option-for-npm-install
  • a

    ambitious-knife-25690

    07/31/2019, 8:15 PM
    well this makes no sense
  • a

    ambitious-knife-25690

    07/31/2019, 8:16 PM
    why can't it find props x_x
  • a

    ambitious-knife-25690

    07/31/2019, 8:17 PM
    It looks like the props error is
    tasks
    only but even after manually importing this it made no difference
  • u

    user

    07/31/2019, 8:20 PM
    What is
    Props
    supposed to be here?
  • a

    ambitious-knife-25690

    07/31/2019, 8:21 PM
    I'm not sure, can't seem to find the definition, it's kevin's externs
  • u

    user

    07/31/2019, 8:23 PM
    (that's the kind of things I dislike with
    *
    imports..)
  • u

    user

    07/31/2019, 8:23 PM
    I guess it's supposed to be https://github.com/haxe-react/haxe-react-core/blob/master/src/react/component/props/Props.hx
  • a

    ambitious-knife-25690

    07/31/2019, 8:23 PM
    I agree
  • u

    user

    07/31/2019, 8:23 PM
    But I thought react-core was deprecated
  • a

    ambitious-knife-25690

    07/31/2019, 8:23 PM
    well, native-base hasn't been updated in 2 years
  • a

    ambitious-knife-25690

    07/31/2019, 8:24 PM
    so that may explain that, ha
  • u

    user

    07/31/2019, 8:24 PM
    Yeah the project is archived
  • u

    user

    07/31/2019, 8:24 PM
    That should be BaseProps from react I think
  • u

    user

    07/31/2019, 8:25 PM
    Hmm strange, I know people who used it this year with react-next
  • a

    ambitious-knife-25690

    07/31/2019, 8:25 PM
    Maybe they never used Icon or locally fixed it?
  • u

    user

    07/31/2019, 8:25 PM
    (well not necessarily native-base itself, but an oss react-native haxe lib)
  • u

    user

    07/31/2019, 8:26 PM
    (nah, not the one)
  • a

    ambitious-knife-25690

    07/31/2019, 8:27 PM
    I broke everything when I did this
  • a

    ambitious-knife-25690

    07/31/2019, 8:27 PM
    lol
  • u

    user

    07/31/2019, 8:28 PM
    Ahah yeah that's not it
  • a

    ambitious-knife-25690

    07/31/2019, 8:28 PM
    It was type inferred so shouldn't it be possible to define anything as the prop type
  • u

    user

    07/31/2019, 8:28 PM
    > BasePropsWithChildren, ?style:Dynamic ...
  • u

    user

    07/31/2019, 8:29 PM
    (or make a typedef Props = react.BaseProps.BasePropsWithChildren somewhere)
  • a

    ambitious-knife-25690

    07/31/2019, 8:30 PM
    has the same effect it appears
  • a

    ambitious-knife-25690

    07/31/2019, 8:30 PM
    nothing useful in the error messages lol
  • a

    ambitious-knife-25690

    07/31/2019, 8:31 PM
    Copy code
    haxe
    @:jsRequire('native-base', 'Icon')
    extern class Icon extends ReactComponentOfProps<{
        > BasePropsWithChildren,
        ?style:Dynamic,
        ?active:Bool,
        ?name:String,
        ?ios:String,
        ?android:String,
    }> {}
  • u

    user

    07/31/2019, 8:32 PM
    Well.. diagnostics x)
1...141516...80Latest