1. <legend id='vVsaa'><style id='vVsaa'><dir id='vVsaa'><q id='vVsaa'></q></dir></style></legend>
  2. <small id='vVsaa'></small><noframes id='vVsaa'>

    • <bdo id='vVsaa'></bdo><ul id='vVsaa'></ul>
    <tfoot id='vVsaa'></tfoot>
    <i id='vVsaa'><tr id='vVsaa'><dt id='vVsaa'><q id='vVsaa'><span id='vVsaa'><b id='vVsaa'><form id='vVsaa'><ins id='vVsaa'></ins><ul id='vVsaa'></ul><sub id='vVsaa'></sub></form><legend id='vVsaa'></legend><bdo id='vVsaa'><pre id='vVsaa'><center id='vVsaa'></center></pre></bdo></b><th id='vVsaa'></th></span></q></dt></tr></i><div id='vVsaa'><tfoot id='vVsaa'></tfoot><dl id='vVsaa'><fieldset id='vVsaa'></fieldset></dl></div>

    1. React native :Unable to resolve module 事实上,这些文件都不存在:

      React native :Unable to resolve module Indeed, none of these files exist:(React native :Unable to resolve module 事实上,这些文件都不存在:)

        <bdo id='UchFh'></bdo><ul id='UchFh'></ul>

        <small id='UchFh'></small><noframes id='UchFh'>

        <i id='UchFh'><tr id='UchFh'><dt id='UchFh'><q id='UchFh'><span id='UchFh'><b id='UchFh'><form id='UchFh'><ins id='UchFh'></ins><ul id='UchFh'></ul><sub id='UchFh'></sub></form><legend id='UchFh'></legend><bdo id='UchFh'><pre id='UchFh'><center id='UchFh'></center></pre></bdo></b><th id='UchFh'></th></span></q></dt></tr></i><div id='UchFh'><tfoot id='UchFh'></tfoot><dl id='UchFh'><fieldset id='UchFh'></fieldset></dl></div>
        • <legend id='UchFh'><style id='UchFh'><dir id='UchFh'><q id='UchFh'></q></dir></style></legend>
            <tfoot id='UchFh'></tfoot>
                  <tbody id='UchFh'></tbody>
                本文介绍了React native :Unable to resolve module 事实上,这些文件都不存在:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                I'm following this medium article to use FloatingTitleTextInputField in my react-native project

                below is my project structure

                Here is my code for HomeScreen.js

                import React, {Component} from 'react';
                import {Text, View, TextInput, StyleSheet} from 'react-native';
                import FloatingTitleTextInputField from './customComponents/floating_title_text_input_field';
                
                
                
                export default class HomeScreen extends Component {
                  render() {
                    return (
                      // <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
                      //   <Text>My First React App</Text>
                      //   <TextInput style={{height: 40, borderColor: 'gray', borderWidth: 1}} />
                      // </View>
                
                      <View style={styles.container}>
                        <View style={styles.container}>
                          <Text style={styles.headerText}>Its Amazing</Text>
                          <FloatingTitleTextInputField
                            attrName="firstName"
                            title="First Name"
                            value={this.state.firstName}
                            updateMasterState={this._updateMasterState}
                          />
                          <FloatingTitleTextInputField
                            attrName="lastName"
                            title="Last Name"
                            value={this.state.lastName}
                            updateMasterState={this._updateMasterState}
                          />
                        </View>
                      </View>
                    );
                  }
                }
                var styles = StyleSheet.create({
                  container: {
                    flex: 1,
                    paddingTop: 65,
                    backgroundColor: 'white',
                  },
                  labelInput: {
                    color: '#673AB7',
                  },
                  formInput: {
                    borderBottomWidth: 1.5,
                    marginLeft: 20,
                    borderColor: '#333',
                  },
                  input: {
                    borderWidth: 0,
                  },
                });
                

                When i try to use FloatingTitleTextInputField inside HomeScreen.js I'm getting below error

                    error Unable to resolve module `./floating_title_text_input_field` from `React Native/AwesomeProject/screens/
                
                HomeScreen.js`: The module `./floating_title_text_input_field` could not be found from `/React Native/AwesomeProject/screens/HomeScreen.js`. Indeed, none of these files exist:
                
                
                  * `/React Native/AwesomeProject/screens/floating_title_text_input_field(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`
                
                
                  * `/React Native/AwesomeProject/screens/floating_title_text_input_field/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`. Run CLI with --verbose flag for more details.
                
                
                Error: Unable to resolve module `./floating_title_text_input_field` from `React Native/AwesomeProject/screens/HomeScreen.js`: The module `./floating_title_text_input_field` could not be found from `/React Native/AwesomeProject/screens/HomeScreen.js`. Indeed, none of these files exist:
                

                Can anybody help me to solve this issue

                If need more information please do let me know. Thanks in advance. Your efforts will be appreciated.

                解决方案

                You're referencing it from the HomeScreen component which is in the screens directory. Because you're using the local ./ path, it's trying to find it in screens/customComponents. Using ../customComponents/floating_title_text_input_field should fix it.

                这篇关于React native :Unable to resolve module 事实上,这些文件都不存在:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                Android file copy(安卓文件拷贝)
                Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)
                Android copy image from gallery folder onto SD Card alternative folder(Android将图像从图库文件夹复制到SD卡替代文件夹)
                Is there a tool to find unused resources in an Android project?(是否有工具可以在 Android 项目中查找未使用的资源?)

                  <i id='LavOr'><tr id='LavOr'><dt id='LavOr'><q id='LavOr'><span id='LavOr'><b id='LavOr'><form id='LavOr'><ins id='LavOr'></ins><ul id='LavOr'></ul><sub id='LavOr'></sub></form><legend id='LavOr'></legend><bdo id='LavOr'><pre id='LavOr'><center id='LavOr'></center></pre></bdo></b><th id='LavOr'></th></span></q></dt></tr></i><div id='LavOr'><tfoot id='LavOr'></tfoot><dl id='LavOr'><fieldset id='LavOr'></fieldset></dl></div>
                  <legend id='LavOr'><style id='LavOr'><dir id='LavOr'><q id='LavOr'></q></dir></style></legend>
                      <bdo id='LavOr'></bdo><ul id='LavOr'></ul>
                    • <tfoot id='LavOr'></tfoot>

                    • <small id='LavOr'></small><noframes id='LavOr'>

                          <tbody id='LavOr'></tbody>