GeekyAnts / GeekyAnts/NativeBase

Incorrect type in ImageStatics interface

Open
#5,279 2 comments 1 reaction 1 assignee Claimed by @Viraj-10 View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

The type to be correct, so that typescript can correctly can identify the type

### CodeSandbox/Snack link

https://snack.expo.dev/ORETTzlFd

### Steps to reproduce

1. Go to line 6 and hover over getSize method.
2. See incorrect documentation for method

### NativeBase Version

3.4.6

### Platform

- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

Seems the type should be corrected here:

https://github.com/GeekyAnts/NativeBase/blob/5d756932a01f20f0400dcb75a3e58766ca4c7a30/src/components/primitives/Image/index.tsx#L100

For some reason the expo.snack can't find the method at all, but that should be irrelevant

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.