TouchableNativeFeedback is used on android which expects background props to be an object. In some cases we pass the whole props object to the TouchableNativeFeedback where background maybe just a string and thus crashes the application.
Fixes this with two functions that either generated the relevant object based on the input string or removes the background from props.
TouchableNativeFeedback is used on android which expects
background
props to be an object. In some cases we pass the whole props object to the TouchableNativeFeedback wherebackground
maybe just a string and thus crashes the application.Fixes this with two functions that either generated the relevant object based on the input string or removes the background from props.