I have a simple react app which I generated from react native cli,
when I add native-base import to my component and run the app by react-native run-ios I get the following error:
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module react-timer-mixin from /Users/wallet/Desktop/Projects/HomaWallet/node_modules/native-base/dist/src/basic/Tabs/index.js: Module react-timer-mixin does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
Clear watchman watches:
watchman watch-del-all.Delete the
node_modulesfolder:rm -rf node_modules && npm install.Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*ornpm start -- --reset-cache.Remove haste cache:
rm -rf /tmp/haste-map-react-native-packager-*. (null))
__38-[RCTCxxBridge loadSource:onProgress:]_block_invoke.226 RCTCxxBridge.mm:412
___ZL36attemptAsynchronousLoadOfBundleAtURLP5NSURLU13block_pointerFvP18RCTLoadingProgressEU13block_pointerFvP7NSErrorP9RCTSourceE_block_invoke.118
__80-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]_block_invoke
-[RCTMultipartStreamReader emitChunk:headers:callback:done:]
-[RCTMultipartStreamReader readAllPartsWithCompletionCallback:progressCallback:]
-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]
__88-[NSURLSession delegate_streamTask:didBecomeInputStream:outputStream:completionHandler:]_block_invoke
-[NSBlockOperation main] -[__NSOperationInternal _start:] __NSOQSchedule_f _dispatch_call_block_and_release _dispatch_client_callout _dispatch_continuation_pop _dispatch_async_redirect_invoke _dispatch_root_queue_drain _dispatch_worker_thread2 _pthread_wqthread start_wqthread
React native version 0.58.1
Native Base version ^2.10.0
OS Mac