File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
java/com/callstack/nativeexample
kotlin/app/src/main/java/com/callstack/kotlinexample Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,12 @@ public void startReactNative(View view) {
20
20
"ReactNative"
21
21
);
22
22
startActivity (intent );
23
+ overridePendingTransition (R .anim .slide_fade_in , android .R .anim .fade_out );
23
24
}
24
25
25
26
public void startReactNativeFragment (View view ) {
26
27
Intent intent = new Intent (this , ReactNativeFragmentActivity .class );
27
28
startActivity (intent );
29
+ overridePendingTransition (R .anim .slide_fade_in , android .R .anim .fade_out );
28
30
}
29
31
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <set xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ android : duration =" 200"
4
+ >
5
+ <translate
6
+ android : fromYDelta =" 10%p"
7
+ android : toYDelta =" 0" />
8
+ <alpha
9
+ android : fromAlpha =" 0.0"
10
+ android : toAlpha =" 1" />
11
+ </set >
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ class MainActivity : AppCompatActivity() {
20
20
" ReactNative"
21
21
)
22
22
startActivity(intent)
23
- overridePendingTransition(R .anim.slide_fade_in, android.R .anim.fade_out);
23
+ overridePendingTransition(R .anim.slide_fade_in, android.R .anim.fade_out)
24
24
}
25
25
26
26
fun startReactNativeFragment (view : View ) {
27
27
val intent = Intent (this , ReactNativeFragmentActivity ::class .java)
28
28
startActivity(intent)
29
- overridePendingTransition(R .anim.slide_fade_in, android.R .anim.fade_out);
29
+ overridePendingTransition(R .anim.slide_fade_in, android.R .anim.fade_out)
30
30
}
31
31
}
You can’t perform that action at this time.
0 commit comments