react native - expected a component class, got [object Object]

Emre Tekince提出了一个问题:react native - expected a component class, got [object Object],或许与您遇到的问题类似。

回答者fandro给出了该问题的处理方式:

You need to rename your loginPage class to LoginPage, the class must be capitalize

希望本文对你有帮助,欢迎支持JavaScript中文网