这是我的项目文件夹Project folder
当我第一次将项目启动到我的设备中时,一切都运行良好。 我想学习反应导航,所以我按照这个链接https://wix.github.io/react-native-navigation/#/installation-android 安装react-native导航后,尝试将启动屏幕作为我的
中的启动画面屏幕文件夹
Index.android.js
SELECT
c.col_id,
c.col_quantity,
c.col_request_date,
c.col_status,
u.col_name,
u.col_lname,
u.col_phone,
u.col_address,
p.col_name,
p.col_supplier,
p.col_quantity,
p.col_price,
p.col_image
FROM
tbl_cart AS c
JOIN
tbl_users AS u
ON
u.col_acct_id = c.col_user_id
JOIN
tbl_product AS p
ON
p.col_id = c.col_product_id
WHERE
(c.col_status = "checkout" OR c.col_status = "checkout_complete")
GROUP BY
(c.col_user_id AND c.col_request_date)
index.js
import App from './src/App';
App.js
import { Navigation } from 'react-native-navigation';
import startupscreen from './startupscreen';
export function registerScreens() {
Navigation.registerComponent('dudenew.startupscreen', () =>
startupscreen);
}
startupscreen.js
import { Navigation } from 'react-native-navigation';
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import { registerScreens } from './screens';
registerScreens();
AppRegistry.registerComponent('dudenew', () => dudenew);
为什么它会显示我的白色空白屏幕?提前致谢
答案 0 :(得分:0)
react-native版本似乎有问题,将您的react-native版本降级到0.49,然后应该没问题。