是否有人在使用一些优秀的插件/模块来搜索react本地站点?我的应用程序上有一个MapView,我想搜索城市。
我找到了这个插件:https://github.com/wmcmahan/React-Native-LocalSearch,但我不能让它工作,我总是会遇到一些错误,除了这个,我尝试谷歌,但我没有找到其他插件。
发布于 2016-01-29 16:39:36
反应-本地搜索模块可以解决这一问题。
如果不知道您正在接收的具体错误,可能很难将其诊断为与模块或实现相关的错误,但下面是我如何让它在项目中工作的原因。
设置和实现
以下是让它正确地集成到您的应用程序中的步骤。
npm install --save react-native-localsearch1. In Xcode's project navigator, right click `Libraries` and `Add Files to [your project's name]`.
2. Find the directory `React-Native-local-search` in your projects node\_modules directory and add `RNLocalSearch.xcodeproj`.
3. Add `libRNLocalSearch.a` to your project's `Build Phases` and `Link Binary With Libraries`https://stackoverflow.com/questions/35014724
复制相似问题