Initial commit

This commit is contained in:
Brent Vatne
2018-08-03 14:59:12 -07:00
parent 3afe8d4261
commit b19c56a544
58 changed files with 15617 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { NativeModules } from 'react-native';
const { PlatformConstants } = NativeModules;
export const supportsImprovedSpringAnimation = () => {
if (PlatformConstants && PlatformConstants.reactNativeVersion) {
const { major, minor } = PlatformConstants.reactNativeVersion;
return minor >= 50 || (major === 0 && minor === 0); // `master` has major + minor set to 0
}
return false;
};