Fix crash due to incorrect Core Graphics code
Fix crash due to incorrect Core Graphics code

This implementation was incorrect and would cause a crash.

react-native-community/react-native-linear-gradient,react-native-community/react-native-linear-gradient,react-native-community/react-native-linear-gradient,react-native-community/react-native-linear-gradient