-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we use <Jsontable> within reac components? Invariant Violation: View config not found for name tr #4
Comments
You need to provide context, what code causes that exception? |
My render function return react elements and the <JsonTable> is within a <View>
I’m very new to this as I only need to have a dummy app to show invoking REST and consuming Json
Francisco Amores
… On 26 May 2018, at 14:47, agracio ***@***.***> wrote:
You need to provide context, what code causes that exception?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I will add the code later today thanks
Francisco Amores
… On 26 May 2018, at 14:47, agracio ***@***.***> wrote:
You need to provide context, what code causes that exception?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This is my code: import React from 'react'; import { WebBrowser } from 'expo'; import { MonoText } from '../components/StyledText'; import JsonTable from 'ts-react-json-table'; export default class HomeScreen extends React.Component { constructor(props) {
} render() {
}
} |
Looks like you have 'react-native' specific problem: https://stackoverflow.com/questions/46750477/react-native-invariant-violation-view-config. By the looks of it you cannot use this component in 'react-native' app. |
I see.
Then I will have to find another solution to render the json in a table
Thanks
Francisco Amores
… On 26 May 2018, at 19:58, agracio ***@***.***> wrote:
Looks like you have 'react-native' specific problem: https://stackoverflow.com/questions/46750477/react-native-invariant-violation-view-config. By the looks of it you cannot use this component in 'react-native' app.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Invariant Violation: View config not found for name tr
This error is located at:
in tr (created by GridHeaderRow)
in GridHeaderRow (created by GridHeader)
in thead (created by GridHeader)
in GridHeader (created by JsonTable)
in table (created by JsonTable)
in div (created by JsonTable)
in div (created by JsonTable)
in JsonTable (at HomeScreen.js:78)
in RCTView (at View.js:60)
in View (at HomeScreen.js:69)
in RCTView (at View.js:60)
in View (at ScrollView.js:791)
in RCTScrollView (at ScrollView.js:887)
in ScrollView (at HomeScreen.js:57)
in RCTView (at View.js:60)
in View (at HomeScreen.js:56)
in HomeScreen (at SceneView.js:10)
in SceneView (at StackViewLayout.js:428)
in RCTView (at View.js:60)
in View (at StackViewLayout.js:427)
in RCTView (at View.js:60)
in View (at StackViewLayout.js:426)
in RCTView (at View.js:60)
in View (at createAnimatedComponent.js:154)
in AnimatedComponent (at StackViewCard.js:12)
in Card (at createPointerEventsContainer.js:28)
in Container (at StackViewLayout.js:488)
in RCTView (at View.js:60)
in View (at StackViewLayout.js:385)
in RCTView (at View.js:60)
in View (at StackViewLayout.js:384)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:58)
in RCTView (at View.js:60)
in View (at Transitioner.js:146)
in Transitioner (at StackView.js:22)
in StackView (at createNavigator.js:96)
in Navigator (at createKeyboardAwareNavigator.js:11)
in KeyboardAwareNavigator (at createNavigationContainer.js:372)
in NavigationContainer (at SceneView.js:10)
in SceneView (at createTabNavigator.js:10)
in RCTView (at View.js:60)
in View (at ResourceSavingScene.js:14)
in RCTView (at View.js:60)
in View (at ResourceSavingScene.js:10)
in ResourceSavingScene (at createBottomTabNavigator.js:79)
in RCTView (at View.js:60)
in View (at createBottomTabNavigator.js:70)
in RCTView (at View.js:60)
in View (at createBottomTabNavigator.js:69)
in TabNavigationView (at createTabNavigator.js:80)
in NavigationView (at createNavigator.js:96)
in Navigator (at createNavigationContainer.js:372)
in NavigationContainer (at SceneView.js:10)
in SceneView (at SwitchView.js:12)
in SwitchView (at createNavigator.js:96)
in Navigator (at createNavigationContainer.js:372)
in NavigationContainer (at RootNavigation.js:24)
in RootNavigation (at App.js:26)
in RCTView (at View.js:60)
in View (at App.js:24)
in App (at registerRootComponent.js:35)
in RootErrorBoundary (at registerRootComponent.js:34)
in ExpoRootComponent (at renderApplication.js:33)
in RCTView (at View.js:60)
in View (at AppContainer.js:102)
in RCTView (at View.js:60)
in View (at AppContainer.js:122)
in AppContainer (at renderApplication.js:32)
get$1
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:14126:6
createInstance
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:14295:27
completeWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:10097:14
completeUnitOfWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:12769:10
performUnitOfWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:12941:32
workLoop
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:12953:43
renderRoot
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:12996:17
performWorkOnRoot
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13632:34
performWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13545:26
performSyncWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13506:16
requestWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13392:6
scheduleWorkImpl
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13259:24
scheduleWork
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:13207:28
enqueueSetState
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:6224:19
setState
C:\Users\FTorres\Kscope18Expo\node_modules\react\cjs\react.development.js:242:31
_handleFinishLoading
C:\Users\FTorres\Kscope18Expo\App.js:55:18
_callee$
C:\Users\FTorres\Kscope18Expo\node_modules\expo\src\launch\AppLoading.js:61:8
tryCatch
C:\Users\FTorres\Kscope18Expo\node_modules\regenerator-runtime\runtime.js:62:44
invoke
C:\Users\FTorres\Kscope18Expo\node_modules\regenerator-runtime\runtime.js:296:30
C:\Users\FTorres\Kscope18Expo\node_modules\regenerator-runtime\runtime.js:114:28
tryCatch
C:\Users\FTorres\Kscope18Expo\node_modules\regenerator-runtime\runtime.js:62:44
invoke
C:\Users\FTorres\Kscope18Expo\node_modules\regenerator-runtime\runtime.js:152:28
C:\Users\FTorres\Kscope18Expo\node_modules\regenerator-runtime\runtime.js:162:19
tryCallOne
C:\Users\FTorres\Kscope18Expo\node_modules\promise\setimmediate\core.js:37:14
C:\Users\FTorres\Kscope18Expo\node_modules\promise\setimmediate\core.js:123:25
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:295:23
_callTimer
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:152:6
_callImmediatesPass
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:200:17
callImmediates
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:464:11
__callImmediates
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:327:4
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:145:6
__guardSafe
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:314:6
flushedQueue
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:144:17
invokeCallbackAndReturnFlushedQueue
C:\Users\FTorres\Kscope18Expo\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:140:11
The text was updated successfully, but these errors were encountered: