DB.users.get_all(function(response){
this.setState(result: response); // not required
return response // required but not working for react-native-db-model
});
我可以从这个方法返回响应。我正在使用 react-native-db-model 而不是在 setState() 方法中设置响应。任何其他建议将不胜感激。
提前致谢。