Skip to content

Ref capture() incorrect typescript #435

Description

@xitrumIT

I use viewshot for my application and the typescript code is not able to identify the type of the ref. and how do fix it, i dont want to set ref: any

Version & Platform

"react-native": "0.68.2",
"react-native-view-shot": "^3.3.0"
"typescript": "^4.5.2",
// HomePage passing ref
Screen Shot 2022-08-18 at 00 14 22

// TopBar get ref
Screen Shot 2022-08-18 at 00 14 36

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions