TypeError:undefined不是对象(评估'style.width')

时间:2018-12-20 04:27:02

标签: react-native react-native-android

您好,我正在尝试学习反应导航的基础知识,并且正在为我的简单应用程序设置背景图像。我希望背景图片适合背景,并且我使用了ImageBackground,因此可以在其中使用组件。问题是我不断收到此错误TypeError:undefined不是一个对象(正在评估style.width)

https://www.facebook.com/login.php?next=https%3A%2F%2Fwww.facebook.com%2Fplugins%2Ferror%2Fconfirm%2Fpage%3Fiframe_referer%3Dhttps%253A%252F%252Fwww.lifeleap.org%252Fis-my-relationship-right-for-me%252F%26kid_directed_site%3Dfalse%26secure%3Dtrue%26plugin%3Dpage%26return_params%3D%257B%2522app_id%2522%253A%2522%2522%252C%2522channel%2522%253A%2522https%253A%252F%252Fstaticxx.facebook.com%252Fconnect%252Fxd_arbiter%252Fr%252Fj-GHT1gpo6-.js%253Fversion%253D43%2523cb%253Df246ad6b1a27112%2526domain%253Dwww.lifeleap.org%2526origin%253Dhttps%25253A%25252F%25252Fwww.lifeleap.org%25252Ff15a3bdc42a846e%2526relation%253Dparent.parent%2522%252C%2522container_width%2522%253A%2522370%2522%252C%2522hide_cover%2522%253A%2522false%2522%252C%2522href%2522%253A%2522https%253A%252F%252Fwww.facebook.com%252Flifeleap%2522%252C%2522locale%2522%253A%2522en_US%2522%252C%2522sdk%2522%253A%2522joey%2522%252C%2522show_facepile%2522%253A%2522false%2522%252C%2522show_posts%2522%253A%2522false%2522%252C%2522width%2522%253A%2522350%2522%252C%2522ret%2522%253A%2522sentry%2522%252C%2522act%2522%253Anull%257D

1 个答案:

答案 0 :(得分:0)

从代码来看,我认为您输入错误,而不是SELECT n.*, m.* FROM news n LEFT JOIN news_meta m ON m.news_id = n.news_id ORDER BY n.id DESC; /* $dbdata will then contain your two tables worth of data: */ echo json_encode($dbdata); ,应该是Style={...}