是否可以在运行于Android平台上的React Native应用程序内使用Ag-grid datagrid?
我尝试了类似于React Web应用程序的步骤,但在logcat中遇到以下错误,
ReactNativeJS ▶︎ Invariant Violation: View config not found for name div. Make sure to start component names with a capital letter.
│
│ This error is located at:
│ in div (created by AgGridReact)
│ in AgGridReact (at App.js:58)
│ in RCTView (at View.js:35)
│ in View (at App.js:57)
│ in RCTView (at View.js:35)
│ in View (at App.js:53)
│ in App (at renderApplication.js:40)
│ in RCTView (at View.js:35)
│ in View (at AppContainer.js:98)
│ in RCTView (at View.js:35)
│ in View (at AppContainer.js:115)
└ in AppContainer (at renderApplication.js:39)
答案 0 :(得分:0)
ag-grid可以很好地缩放到小屏幕。您将无法获得Excel或Google表格通过其本机应用程序提供的良好体验,但是如果不一定完美,则可以在WebView中呈现网格:https://github.com/react-native-community/react-native-webview