通过npm获取二维码,开始在Expo模拟器上运行react-native应用

时间:2018-10-02 18:02:06

标签: react-native expo

我用以下方法创建了一个应用程序:

Enter a number greater than 0: 1
Enter a number greater than 1: 5
[1, 2, 3, 4, 5]

但是,当我运行function translatePigLatin(str) { function check(obj) { return ['a','i','u','e','o'].indexOf(str.charAt(obj)) == -1 ? check(obj + 1) : obj; } return str.substr(check(0)).concat((check(0) === 0 ? 'w' : str.substr(0, check(0))) + 'ay'); } // test here translatePigLatin("consonant"); // should return "onsonantcay" 时,没有显示通过Expo应用程序投射的QR码。 如何获取此QR码?​​

1 个答案:

答案 0 :(得分:0)

尝试直接在Expo XDE上创建您的应用程序,然后进入您的项目文件夹并运行

expo start