Skip to content

SafeAreaView flow type error in YellowBox #21897

@jjenzz

Description

@jjenzz

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
      Memory: 2.18 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.3.0 - ~/.nvm/versions/node/v10.3.0/bin/node
      Yarn: 1.6.0 - ~/.yarn/bin/yarn
      npm: 6.1.0 - ~/.nvm/versions/node/v10.3.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
    IDEs:
      Android Studio: 3.1 AI-173.4819257
      Xcode: 10.0/10A255 - /usr/bin/xcodebuild
    npmPackages:
      @storybook/react-native: ^3.4.11 => 3.4.11
      react: 16.5.0 => 16.5.0
      react-native: 0.57.2 => 0.57.2
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

image

image

Reproducible Demo

  1. Initialise new react native project with flow

  2. yarn flow check

  3. The following errors appear:
    image

  4. Add those files to [untyped] config:

    [untyped]
    .*/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js
    .*/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js
    .*/node_modules/react-native/Libraries/Components/View/ViewPropTypes.js
    
  5. yarn flow check again

  6. YellowBox errors appear

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