GeekyAnts / GeekyAnts/NativeBase
Change Image source dynamically doesn't swap image
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Change Image source property dynamically swap image
### CodeSandbox/Snack link
https://snack.expo.dev/@ermogenes/a7ed3f
### Steps to reproduce
1. Go to [https://snack.expo.dev/@ermogenes/a7ed3f](https://snack.expo.dev/@ermogenes/a7ed3f).
2. Click on 'Toggle'.
3. Look to the images.
### NativeBase Version
3.4.28
### Platform
- [X] Android
- [ ] CRA
- [X] Expo
- [X] iOS
- [ ] Next
### Other Platform
_No response_
### Additional Information
The `Image` from `react-native` works as expected, but the `Image` from `native-base` doesn't.
Reproduced with same behavior on iOS and Android via Expo Go.
Contributor guide
Research direction
Start with the linked Expo Snack and reproduce the Toggle behavior on iOS and Android. Compare the NativeBase Image behavior with the react-native Image, and consider the issue complete when dynamically changing the source swaps the displayed image on both platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100