Skip to content

Does not seem to support flow's strict_call_arity #14832

@JasperH8g

Description

@JasperH8g

Is this a bug report?

Yes

Have you read the Bugs section of the Contributing to React Native Guide?

Yes

Environment

  1. react-native -v: react-native-cli: 2.0.1 | react-native: 0.45.1

  2. node -v: v6.9.2

  3. npm -v: 3.10.9

  4. yarn --version (if you use Yarn): 0.21.3

  5. Target Platform (e.g. iOS, Android): iOS

  6. Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra

  7. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Xcode

Steps to Reproduce

  1. > react-native init TmpProject
  2. > cd TmpProject
  3. > yarn add -D flow-bin
  4. edit .flowconfig to use flow-version >= 0.47
  5. > ./node_modules/.bin/flow
node_modules/react-native/Libraries/Experimental/WindowedListView.js:493
493:           {this.props.renderWindowBoundaryIndicator(showIndicator)}
                                                         ^^^^^^^^^^^^^ unused function argument
   76:   renderWindowBoundaryIndicator?: () => ?React.Element<any>,
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no arguments

... more errors like these...

Found 41 errors

Expected Behavior

No errors on a newly created project.

Actual Behavior

A lot of error on a newly created project.

Reproducible Demo

https://github.com/Jpunt/react-native-flow-bug

See this post on flow.org for more information about these kind of errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions