小编uge*_*ang的帖子

Realm Javascript 是否支持 Join、Group By 和 Aggregation 功能

开发一个显示统计数据的React Native 移动应用,下面的功能会被广泛使用,Realm 能满足需求吗?



聚合自动
增量加入组

请建议任何其他最适合统计应用程序的 ORM/DB?

realm react-native realm-mobile-platform

5
推荐指数
1
解决办法
831
查看次数

wix/react-native-navigation导航栏中的上下文弹出菜单

是否可以使用"react-native-navigation"导航栏中的"react-native-popup-menu"设置三点上下文菜单?或者我们是否有任何其他方法在IOS和Android中使用"react-native-navigation"导航栏设置三点上下文菜单?

react-native react-native-navigation react-native-popup-menu

5
推荐指数
1
解决办法
2711
查看次数

哪种NoSQL数据库最适合统计报表应用

我们正在创建一个接收 JSON 消息的应用程序,如下所示,

{ orderId: "00e8da9b", created: 12-22-2016, lineItems: [ { itemName: Item 1 qty: 1 price: 20.0 } { itemName: Item 2 qty: 3 price: 80.0 }] 定价:{零售:110,实际:100,储蓄:10,},}

主要是应用程序用来生成统计报表。系统将执行的主要操作是,
INSERT order details
UPDATE order status
SUM 所有订单中特定项目的总价(按月和年
)在所有订单中按项目名称搜索(也类似于部分文本搜索)并显示所有订单记录数量、项目和价格

我们已经回顾了一些 NoSQL DB 的 MongoDB、Cassandra 和 Elastic Search。查看以下 URL 时,看起来 Elastic Search 是比 MongoDB 更好的搜索和求和操作选择。但在 Elastic Search 中存在数据丢失的可能性。
http://blog.quarkslab.com/mongodb-vs-elasticsearch-the-quest-of-the-holy-performances.html

请建议哪种 NoSQL DB 最适合该要求。

谢谢。

database nosql

4
推荐指数
1
解决办法
3085
查看次数

错误:无法解析模块react-redux/native

我正在尝试使用Redux的第一个react-native应用程序,并在设备上运行应用程序时收到以下错误消息,

"UnableToResolveError:无法从C:\ project\Testing\index.android.js解析模块react-redux/native:模块映射或这些目录中不存在模块:C:\ project\Testing \node_modules\react-终极版"

的package.json:

{
"name":"Testing",
"version":"0.0.1",
"private":true,
"scripts":{
"start":"node node_modules/react-native/local-cli/cli.js start ",
"test":"jest"
},
"dependencies":{
"react":"15.4.1",
"react-native":"0.40.0",
"react-redux":"^ 5.0.2" ,
"redux":"^ 3.6.0",
"redux-thunk":"^ 2.2.0"
},
"devDependencies":{
"babel-jest":"18.0.0",
"babel-preset-react-native":"1.9.1",
"jest":"18.1.0",
"react-test-renderer":"15.4.1"
},
"jest":{
"预设":"react-native"
}
}

index.android.js:

import React, { AppRegistry } from 'react-native';
import { Provider } from 'react-redux/native';
import App from './src/containers/App';
import configStore from './src/stores/configStore';
const store = configStore();
var TestingApp = React.createClass({
  render () {
    return (
      ...
    );
  }
});
AppRegistry.registerComponent('TestingApp', () => …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native react-redux

4
推荐指数
1
解决办法
6942
查看次数

ReactNative - 错误:生成cmd.exe ENOENT

在执行react-native run-android时,收到错误消息"错误:spawn cmd.exe ENOENT"

环境:
react:16.0.0-alpha.6,
react-native:0.43.1
操作系统:Windows 10
node.js:6.9 .2
纱线:0.22.0

c:\sampleproject>react-native start
.....
Running packager on port 8088.
.....

c:\sampleproject>react-native run-android
.....
Installing APK 'app-debug.apk' on 'Nexus_5X_API_23_1(AVD) - 6.0' for 
app:debug
Installed on 1 device.

BUILD SUCCESSFUL

Total time: 14.114 secs
Running C:\Users\User\AppData\Local\Android\sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
Starting the app on emulator-5554 (C:\Users\User\AppData\Local\Android\sdk/platform-tools/adb -s emulator-5554 
shell am start -n com.sampleproject/.MainActivity)...
Starting: Intent { cmp=com.sampleproject/.MainActivity }
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn cmd.exe ENOENT …
Run Code Online (Sandbox Code Playgroud)

react-native

2
推荐指数
1
解决办法
7587
查看次数