Skip to content

undefined is not an object (evaluating 'this.wrappedInstance.setNativeProps') with TouchableHighlight #14917

Description

@Symous

Hi, after I update RN to 0.45.1 ,when I add a TouchableHighlight component to my page and set a onPress prop ,error undefined is not an object (evaluating 'this.wrappedInstance.setNativeProps') occured when I press in it.

<TouchableHighlight onPress={()=>{alert('666')}} style={{width:100,height:47,backgroundColor:'#F6585D'}}>
        <Text style={{alignSelf:'center',color:'white'}}>Button</Text>
</TouchableHighlight>

Platform: Android
RN Version : 0.45.1
OS: Windows 10 64 bit .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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