-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
44 changes: 44 additions & 0 deletions
44
android/app/src/main/java/com/zhaochong/android/TestActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.zhaochong.android; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
import com.kaopiz.kprogresshud.KProgressHUD; | ||
import com.rnbridge.RNBridgeManager; | ||
import com.rnbridge.callback.RNPushlishMsgListener; | ||
import com.rnbridge.rnactivity.BaseReactActivity; | ||
|
||
public class TestActivity extends BaseReactActivity implements RNPushlishMsgListener { | ||
Bundle bundle = new Bundle(); | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
// setContentView(R.layout.activity_test); | ||
RNBridgeManager | ||
.getInstance() | ||
.setLaunchOptions(bundle) | ||
.setComponentName("RnBase") | ||
.setBundleAssetName("index.VPCenter.bundle") | ||
.setCustomProgressParams("加载中。。。。", "测试中", KProgressHUD.Style.SPIN_INDETERMINATE) | ||
.setNativeContants("RNContants", "我是Android常量,hello RN") | ||
// .setRnPushlishMsgListener() | ||
.startRNActivity(this); | ||
finish(); | ||
} | ||
|
||
@Override | ||
public String rnCallNativeFromPromise(String msg) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String rnCallNativeFromCallback(String msg) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void rnCallNative(String s, String action) { | ||
|
||
} | ||
} |
Binary file added
BIN
+134 Bytes
...ndroid/drawable-hdpi/node_modules_reactnavigation_src_views_assets_backicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+100 Bytes
...ndroid/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.91 KB
...app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_author.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.29 KB
...id/app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.52 KB
...pp/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_control.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+520 Bytes
...app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_growth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.22 KB
.../app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_level.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+523 Bytes
...app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_scores.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.56 KB
...oid/app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_center_center_vp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.49 KB
...oid/app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_home_search_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
...p/src/main/res/android/drawable-mdpi/rn_vpcenter_img_myscores_mycore_shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.86 KB
...ain/res/android/drawable-mdpi/rn_vpcenter_img_myscores_myscore_gnetlinkicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.76 KB
...src/main/res/android/drawable-mdpi/rn_vpcenter_img_myscores_myscores_active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.51 KB
...src/main/res/android/drawable-mdpi/rn_vpcenter_img_myscores_myscores_number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.5 KB
.../src/main/res/android/drawable-mdpi/rn_vpcenter_img_myscores_myscores_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.2 KB
...p/src/main/res/android/drawable-mdpi/rn_vpcenter_img_myscores_myscores_shop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+776 Bytes
...id/app/src/main/res/android/drawable-mdpi/rn_vpcenter_img_public_cell_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+134 Bytes
...droid/drawable-xhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+167 Bytes
...roid/drawable-xxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+207 Bytes
...oid/drawable-xxxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".TestActivity"> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters