比思論壇
標題: Mac下安装React native [打印本頁]
作者: think003 時間: 2016-11-20 12:00
標題: Mac下安装React native
- 首先是安装node环境。brew install node*安装node如果出现某些异常,可以尝试加上sudo
- 在git上下载,或者直接clone项目 React native
- npm install -g react-native-cli 安装命令行界面工具。
- 在react-native的项目目录下使用react-native命令行命令init初始化一个demo项目。react-native init DemoProject
初始化完成后,在DemoProject目录下会看到DemoProject.xcodeproj文件,其中的index.ios.js就是控制项目的js文件,简单的demo,主要界面和逻辑都是在这个js文件里。
如果执行到第4步,出现npm install或者提示npm start的警告,可以在当前目录执行一下sudo npm install。
作者: Love_Wei 時間: 2016-12-30 12:03
{"status":1,"data":{"to_result_data":{"rsa_sign":"CCVJskhhEx5oM9KSUDVIBOBnF4NvlL5dijPdAZxNq05KrFpe2yhIlrmVv6mVmXAXUtJKXmp1iQg92LS2W5RuauyTdj2u8veOfiBVccthSWW8%2BROoE4zU03nbFQI563OdGv1C6F9esHs19RKFy8N8t1CVsF8ffUkcEG8L7uVzsMQ%3D","sign_data":{"service":"mobile.securitypay.pay","partner":"2088221923312713","_input_charset":"utf-8","out_trade_no":"XAN16224769510","subject":"\u661f\u7f8e\u7968\u52a1 _\u7535\u5f71\u7968 _\u6f14\u51fa\u7968","payment_type":"1","body":"XAN16224769510","total_fee":"35.00","notify_url":"http:\/\/xmpay.st.ixingmei.com\/index.php\/Pay\/Pay\/alipay_wap_notify"},"sign_type":"RSA","payment_code":"alipay_mobileSecuritypayPay"},"pay_info":{"client_order_id":"2476951","client_order_no":"XAN1622476951","payment_code":"alipay_mobilesecuritypay","app_key":"0","id":"102349197","pay_amount":"35.00","out_trade_no":"XAN16224769510","client_user_id":"1661024","client_order_id_str":"2476951","client_uid":"2433572","openid":null,"add_time":"1482990246"},"payment_code":"alipay_mobilesecuritypay"}}
歡迎光臨 比思論壇 (http://bbb-ccc.space/) |
Powered by Discuz! X2.5 |