我试图从原生的目录中导入所有内容,但它给了我一个错误
错误:捆绑失败:错误:无法从
../actions
解析模块F:\INSTALLED\React-Native\crm\components\PeopleItem.js
:无法从../actions
找到模块F:\INSTALLED\React-Native\crm\components\PeopleItem.js
。实际上,这些文件都不存在:
但是文件夹名称actions
存在。
这是我的PeopleItem.js
import React from 'react'
import {
StyleSheet,
Text,
View,
image
} from 'react-native';
import { connect } from 'react-redux'
import {getTheme} from 'react-native-material-kit'
import icon from 'react-native-vector-icons/EvilIcons'
import * as actions from '../actions'
答案 0 :(得分:5)
set(['Apple', 'Apricot', 'Pear', 'Pineapple', 'Orange', 'Banana', 'Clementine'])
文件必须用小写'i'命名为:Index.js
,以便解释器可以将其正确解释为索引文件。