本项目是基于 MaxLeap ReactNative SDK 开发的一个实例。
-
在 https://www.maxleap.cn 中创建 MaxNews 模版应用,记录 appid 和 clientkey。
-
更换
/ios/MaxNews/AppDelegate.m
文件中中的宏定义为步骤 1 中的 appid 和 clientkey:#define MAXLEAP_APPID @"your_app_id" #define MAXLEAP_CLIENTKEY @"your_client_key"
-
分别替换
/android/app/src/main/java/com/maxnews/App.java
中的MAXLEAP_APPID
和MAXLEAP_CLIENTKEY
为步骤 1 中的 appid 和 clientkeypublic static String MAXLEAP_APPID = "your_app_id"; public static String MAXLEAP_CLIENTKEY = "your_client_key";