react-native-better-image
react-native-better-image copied to clipboard
Patch 2 Updated with Custom Image Component
@krunalbad React Native Fast Image has too many issues which is why I didn't add it to the package. May be we can think of a different approach to allow people use their own image components?
Yeah we can try that approach! Great suggestion!
Added possible feature! Please review!
Thanks @krunalbad Now that we are allowing custom components, we need to also ensure prop types are properly displayed based on the component
What are you suggesting? @DaniAkash
I have tested it on multiple devices of both platforms so far it worked great. One another feature we can add is onLayout as it common for most of the 3rd pkgs out there and even for Image. Let me know your concern. It will help much better in application development!
I have tested it on multiple devices of both platforms so far it worked great. One another feature we can add is
onLayoutas it common for most of the 3rd pkgs out there and even forImage. Let me know your concern. It will help much better in application development!
BetterImage extends all the props of regualar image component including onLayout. This should work out of the box
What are you suggesting? @DaniAkash
Try if you can infer prop types based on the component using typescript
I have tested it on multiple devices of both platforms so far it worked great. One another feature we can add is
onLayoutas it common for most of the 3rd pkgs out there and even forImage. Let me know your concern. It will help much better in application development!BetterImage extends all the props of regualar image component including onLayout. This should work out of the box
Yeah I noticed! Great!
Most of the pkgs have this onLayout common.
As there are already otherProps sent to it, so it should work for all quite good.
What are you suggesting? @DaniAkash
Try if you can infer prop types based on the component using typescript
Sure I'll look into it!
@DaniAkash Am I missing something here?
Are you suggesting this change? @DaniAkash
From imageComponent?: Component; to imageComponent?: ReactElement;
or is it something else ? let me know what am i missing here!