react-instantsearch

Using Algolia react-instantsearch with react-native

不羁的心 提交于 2019-12-14 03:57:50
问题 I'm trying to get the new Algolia react-instantsearch component using react-native. I've been following the guide and I'm completely stuck. Basically, anytime I try to add my <SearchBox /> component inside the <InstantSearch /> component, my app dies with a Expected a component class, got [object Object] . As far as I can tell, I'm wiring up <SearchBox /> to the connectSearchBox connector so I'm not sure what's going on. Code (I do have real values for appId, apiKey, & index): import React,