Skip to content

Commit 51ba8aa

Browse files
committed
remove semicolons and add transition to java example
1 parent a68daa1 commit 51ba8aa

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

example/java/app/src/main/java/com/callstack/nativeexample/MainActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ public void startReactNative(View view) {
2020
"ReactNative"
2121
);
2222
startActivity(intent);
23+
overridePendingTransition(R.anim.slide_fade_in, android.R.anim.fade_out);
2324
}
2425

2526
public void startReactNativeFragment(View view) {
2627
Intent intent = new Intent(this, ReactNativeFragmentActivity.class);
2728
startActivity(intent);
29+
overridePendingTransition(R.anim.slide_fade_in, android.R.anim.fade_out);
2830
}
2931
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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>

example/kotlin/app/src/main/java/com/callstack/kotlinexample/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ class MainActivity : AppCompatActivity() {
2020
"ReactNative"
2121
)
2222
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)
2424
}
2525

2626
fun startReactNativeFragment(view: View) {
2727
val intent = Intent(this, ReactNativeFragmentActivity::class.java)
2828
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)
3030
}
3131
}

0 commit comments

Comments
 (0)