Uh oh!
There was an error while loading. Please reload this page.
Extended icon and selectedIcon propType to include scale - #5131
Conversation
facebook-github-bot
commented
Jan 5, 2016
By analyzing the blame information on this pull request, we identified @nicklockwood, @vjeux and @sahrens to be potential reviewers. |
nicklockwood
commented
Jan 5, 2016
Image.propTypes.source is already the canonical representation for image source shape. It doesn't currently include scale, but it probably should, along with width and height. |
cem2ran
commented
Jan 5, 2016
That was my initial thought too. I tried adding scale to an Image in ImageExample to test it out, but it didn't seem to scale: Is this the expected behaviour? Where should I be looking to determine the missing propTypes? |
facebook-github-bot
commented
Mar 14, 2016
@cem2ran updated the pull request. |
mkonicek
commented
Mar 20, 2016
I believe we should solve that problem in a generic way as discussed above, rather than this PR. I'll close this. Let me know if I'm mistaken :) |
nicklockwood
commented
Mar 20, 2016
@cem2ran setting scale in an The scale property is useful only in cases where the image size isn't specified any other way, such as the icons in a TabBarIOS. |
Resolves issue #4591
Not sure what the best practice is with regards to de-duplication in propTypes, and if that proptype should therefore be declared as a variable and reused for icon and selectedIcon?