Skip to content

Props validation errors when using polyfills #17790

Description

@Hunsu

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: Linux 4.13
Node: 8.1.4
Yarn: 1.0.1
npm: 4.6.1
Watchman: 4.9.0
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0

Target Platform: Android

Steps to Reproduce

I created a repo https://github.com/Hunsu/react-native-fetch-mock-issue-5 with the issue.

I wanted to use the package react-native-fetch-mock. I ran into an issue about the es6 Symbol. So I added a polyfill (babel-polyfill and replaced later with es6-symbol/). The issue was resolved but now I got errors about invalid props for the components I use. The errors are always about the children props: Failed prop type: invalid prop 'children' of type object supplied to 'some component', expected a single ReactElement.

Expected Behavior

No props validation errors

Actual Behavior

Props errors

screenshot from 2018-01-30 19-48-07

Reproducible Demo

https://github.com/Hunsu/react-native-fetch-mock-issue-5

Just do yarn install and then start the app on expo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions