GeekyAnts / NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.
https://nativebase.io/
MIT License
20.21k stars 2.39k forks source link

accessibilityLevel is throwing TypeScript warning - please support React Native Web TextTypes #5509

Open haveamission opened 2 years ago

haveamission commented 2 years ago

Description

accessibilityLevel prop is throwing TypeScript warning

Problem Statement

When trying to use accessibilityLevel on <Heading>, you get an error about how the type doesn't exist.

Screen Shot 2022-10-25 at 12 01 13 PM Screen Shot 2022-10-25 at 12 01 07 PM

Per discussion with Native Base Discord, it seems this is because:

We extend Text type from react-native and not react-native-web because of that it's showing type error.

Per request, I have created this Github issue

Proposed Solution or API

Extend Text type from react-native-web

Alternatives

N/A

Additional Information

No response

Viraj-10 commented 2 years ago

Hi @haveamission, Thanks for reporting the issue. We will look into it.