Skip to content

Commit

Permalink
LayoutAnimation on android
Browse files Browse the repository at this point in the history
  • Loading branch information
birkir committed Jul 14, 2018
1 parent 5288e13 commit 044fca9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appcenter-pre-build.sh
Expand Up @@ -62,7 +62,7 @@ if [ ! -z "$ANDROID_CODEPUSH_APPID" ]; then
cd -
else
prepare_code_push
code-push codepush release-react $ANDROID_CODEPUSH_APPID android --outputDir build --description "$COMMIT_MESSAGE"
code-push release-react $ANDROID_CODEPUSH_APPID android --outputDir build --description "$COMMIT_MESSAGE"
sentry-cli react-native codepush $ANDROID_CODEPUSH_APPID android ./build/CodePush --bundle-id $ANDROID_BUNDLE_ID
curl -X PATCH "https://api.appcenter.ms/v0.1/apps/$ANDROID_CODEPUSH_APPID/builds/$APPCENTER_BUILD_ID" -H "accept: application/json" -H "X-API-Token: $APPCENTER_API_KEY" -H "Content-Type: application/json" -d "{ \"status\": \"cancelling\" }"
fi
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
@@ -1,5 +1,5 @@
import './utils/sentry';
import { YellowBox, NetInfo, AsyncStorage } from 'react-native';
import { YellowBox, NetInfo, AsyncStorage, UIManager, Platform } from 'react-native';
import { Navigation } from 'react-native-navigation';
import { Screens, startApp } from 'screens';
import UI from 'stores/UI';
Expand All @@ -23,6 +23,11 @@ if (__DEV__) {
// (global as any).FormData = originalFormData ? originalFormData : FormData;
}

// Enable LayoutAnimation on android
if (Platform.OS === 'android') {
UIManager.setLayoutAnimationEnabledExperimental(true);
}

// Register screens
Screens.forEach((ScreenComponent, key) =>
Navigation.registerComponent(key, () => ScreenComponent));
Expand Down

0 comments on commit 044fca9

Please sign in to comment.