im面临一个带有本机代码反应的麻烦问题:在ios上的expo app上运行该应用程序工作正常,但在android上却显示以下错误!即时通讯不知道问题出在哪里,但是导入了常量变量,因为它可以帮助我确定产生错误的原因:
ReferenceError:找不到变量:常量
此错误位于: 在索引中(由Connect(Index)创建) 在Connect(Index)中(由SectionData创建) 在RCTView中(由Context.Consumer创建) 在RCTView中(由Context.Consumer创建) 在SectionData中(由ListingDetail创建) 在RCTView中(由Context.Consumer创建) 在RCTView中(由Context.Consumer创建) 在RCTScrollView中(由ScrollView创建) 在ScrollView中(由AnimatedComponent创建) 在AnimatedComponent中(由ListingDetail创建) 在RCTView中(由Context.Consumer创建) 在ListingDetail中(由Connect(ListingDetail)创建) 在Connect(ListingDetail)中(由Index创建) 在RCTView中(由Context.Consumer创建) 在Handler中(由Index创建) 在索引中(由Connect(Index)创建) 在Connect(Index)中(由PostDetailScreen创建) 在PostDetailScreen中(由withSafeArea创建) 在RCTView中(由Context.Consumer创建) 在AnimatedComponent中(由SafeView创建) 在SafeView中(由withOrientation创建) in with Orientation(由withSafeArea创建) 在withSafeArea中(由Connect(withSafeArea)创建) 在Connect(withSafeArea)中(由SceneView创建) 在SceneView中(由TabNavigationView创建) 在RCTView中(由Context.Consumer创建) 在RCTView中(由Context.Consumer创建) 在ResourceSavingScene中(由TabNavigationView创建) 在RCTView中(由Context.Consumer创建) 在ScreenContainer中(由TabNavigationView创建) 在RCTView中(由Context.Consumer创建) 在TabNavigationView中(由NavigationView创建) 在NavigationView中(由Navigator创建) 在导航器中(由NavigationContainer创建) 在NavigationContainer中(由RootRouter创建) 在RCTView中(由Context.Consumer创建) 在AndroidDrawerLayout中(由DrawerLayoutAndroid创建) 在DrawerLayoutAndroid中(由MenuAndroid创建) 在MenuAndroid中(由Connect(MenuAndroid)创建) 在Connect(MenuAndroid)中(由RootRouter创建) 在RCTView中(由Context.Consumer创建) 在RootRouter中(由Connect(RootRouter)创建) 在Connect(RootRouter)中(由App创建) 在提供程序中(由App创建) 在App中(由withSafeArea创建) 在RCTView中(由Context.Consumer创建) 在AnimatedComponent中(由SafeView创建) 在SafeView中(由withOrientation创建) in with Orientation(由withSafeArea创建) 在withSafeArea中(由ExpoRootComponent创建) 在RootErrorBoundary中(由ExpoRootComponent创建) 在ExpoRootComponent中 在RCTView中(由Context.Consumer创建) 在RCTView中(由Context.Consumer创建) 在RootSiblingsWrapper中(由AppContainer创建) 在RCTView中(由Context.Consumer创建) 在AppContainer componentWillMount中 AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:288151 callComponentWillMount AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:14755 mountClassInstance AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:14843 updateClassComponent AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:16298 performUnitOfWork AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19003 工作循环 AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19035: renderRoot AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19098: performWorkOnRoot AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19789: performWork AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19713 performSyncWork AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19688: 批处理更新$ 1 AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:19889 批处理更新 AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:10963 _receiveRootNodeIDEvent AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:11020 receiveTouches AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:11050: __callFunction AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:3644 AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:3417 __守护 AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:3598: callFunctionReturnFlushedQueue AppEntry.bundle?platform = android&dev = true&minify = false&hot = false&assetPlugin =%2FUsers%2Fmac%2FDesktop%2F11%2FListPro%201.3.1%205%2Fold%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js:3416 callFunctionReturnFlushedQueue [本地代码]
import { Images, Events, Config, AppConfig, Tools, Constants} from '@common'
this.isListable = AppConfig.Theme == Constants.Themes.Classic
this.isMyListing = AppConfig.Theme == Constants.Themes.Classic
this.isListingPro = AppConfig.Theme == Constants.Themes.Classic