Skip to content

Button component generate warning #11094

@adrienbataille

Description

@adrienbataille

Description

Using react native button on iOS create the following warning:

Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`.

Reproduction

Step 1: Add a button in your view,
Step 2: Launch the iOS simulator
Step 3: Click on the button and see the warning.

capture d ecran 2016-11-23 a 11 23 53
capture d ecran 2016-11-23 a 11 23 57

If it can help, you can find the code here: https://github.com/adrienbataille/test-react-native

Note: I don't have this problem on Android

Solution

After a little investigation, I found the button component is based on TouchableOpacity for iOS and react-native release notes for 0.38.0 mention this commit: 1bb323e.
I don't if it the origin of the problem, but may be it can have an impact, because it works fine with react-native 0.37.0.

Additional Information

  • React Native version: 0.38.0
  • Platform: iOS
  • Operating System: MacOS - Sierra

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