瀏覽代碼

Update installation-android.md

Guy Carmeli 7 年之前
父節點
當前提交
67add6643f
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. 2
    4
      docs/installation-android.md

+ 2
- 4
docs/installation-android.md 查看文件

@@ -59,6 +59,7 @@
59 59
 
60 60
 		protected List<ReactPackage> getPackages() {
61 61
 			// Add additional packages you require here
62
+			// No need to add RnnPackage and MainReactPackage
62 63
 			return Arrays.<ReactPackage>asList(
63 64
 				// eg. new VectorIconsPackage()
64 65
 			);
@@ -66,11 +67,8 @@
66 67
 
67 68
 		@Override
68 69
 		public List<ReactPackage> createAdditionalReactPackages() {
69
-			return this.getPackages();
70
+			return getPackages();
70 71
 		}
71
-		// No need to add RnnPackage and MainReactPackage
72
-		// Simply return null if you do not have additional packages:
73
-		// return null;
74 72
 	}
75 73
 	```
76 74