The previous implementation was not working with the new version of react-native
closes #3133 (closed)