Skip to content

Cannot style CheckBox component in TSX files, attribute not present. #901

Closed
@darkyelox

Description

@darkyelox

Hi, i'm using native-base for learning to use react-native and typescript together but i notice some problem using the CheckBox component because i can't style it using the style attribute in my tsx files, so i go to the index.d.ts and i notice that the CheckBox interface is not extending ReactNative.TouchableOpacityProperties so i cannot style this component using TypeScript.

  • react 16.0.0-alpha.6
  • react-native 0.44.0
  • native-base ^2.1.4
  • Expected behavior: styling the CheckBox component in TSX files
  • Actual Behavior: CheckBox component not extends ReactNative.TouchableOpacityProperties in the index.d.ts file so cannot be styled in TSX files.
  • Reproduce: create a react-native project and configure it using typescript, create a root component using TSX extension and try to use style attribute in a CheckBox component.
  • Screenshots:
    image
    image
    image

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions