These are chat archives for flow-stack/flow

30th
Sep 2016
Eric
@bosung90
Sep 30 2016 19:22

Hello, I am using flow inside React project, and I have this

<DrawerLayout
   ref={(drawerLayout)=>{this.drawerLayout = drawerLayout}}>
</DrawerLayout>

But then I get red underline in this.drawerLayout with error message

property `drawerLayout`: /Users/erickim/Documents/Workspace/StepUp/src/App.js:19
Property not found in
App: /Users/erickim/Documents/Workspace/StepUp/src/App.js:14

any idea how to get rid of this error message?

Eric
@bosung90
Sep 30 2016 19:28

Also when I do

export default Home = (props : any) => (
    <Component />
)

I get red line under Home saying

assignment of identifier `Home`: /Users/erickim/Documents/Workspace/StepUp/src/components/Home/Home.js:9
Could not resolve name

how to get rid of this error message?