Android上的世博会小吃进口问题

时间:2018-07-25 10:32:06

标签: android react-native expo

我有两个文件。文件夹A下的fileA和文件夹B下的fileB:

folderA/fileA.js
folderB/fileB.js

我拥有的fileA

import {functionB} from '../folderB/fileB';

在fileB我有

export const functionB = () => {alert('hello');}

我收到以下消息:

Unable to resolve 'module://folderA/folderB/fileB.js' 
Evaluating module://folderA/fileA.js

我不明白为什么要在folderA / folderB中查找,它应该只在folderB内部进行搜索,因为我的导入文件是../ folderB

仅当使用点心并在Android(嵌入式设备和我的设备)上运行应用程序时,才会出现此问题。在iOS或Expo桌面上不会发生这种情况。

感谢您的帮助

0 个答案:

没有答案
相关问题