React-native-gesture-handler: 'getDrawable(int)' is deprecated(IS BUG)

Created on 3 Mar 2019  路  7Comments  路  Source: software-mansion/react-native-gesture-handler

i find bug on react-native-gesture-handler please fix this
getResources().getDrawable(sResolveOutValue.resourceId); TO=>
ContextCompat.getDrawable(getContext(),sResolveOutValue.resourceId) on 155 line in RNGestureHandlerButtonViewManager class

Most helpful comment

Very useful. No course of action to take - no nothing. Plus closed another thread saying it's a duplicate of this :D good work

All 7 comments

Hello,
Yes it's deprecated since API 22, but this line is performed if API is lower than 22 and it's necessary.

Very useful. No course of action to take - no nothing. Plus closed another thread saying it's a duplicate of this :D good work

could you elaborate a bit what鈥檚 in your mind?

Now how to find answer for this? @osdnk closed another issue telling its duplicate of this, and closed this issue without giving a proper answer. Super course of action by @osdnk . Now there is no way of getting an answer.

+1 I am also having this issue. If anyone finds an answer please share

@vikramkh @madgreasemonkey @sinisa-nimcevic @AMINDRH91

This might help you:

https://github.com/software-mansion/react-native-gesture-handler/issues/509#issuecomment-565743081

This is breaking my android build trying to update to RN 0.60.0.

Anyone else seeing this as not just a warning but an error?
(Downgrading to ~1.3.0 didn't work for me unfortunately)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhaimincs picture muhaimincs  路  3Comments

jacobrosenskold picture jacobrosenskold  路  3Comments

rgangopadhya picture rgangopadhya  路  4Comments

enahum picture enahum  路  4Comments

nguyenhose picture nguyenhose  路  4Comments