-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
React fails to validate View on GatewayDest as a value of component property.
Failed prop type: Invalid prop `component` supplied to `GatewayDest`.
Code:
import React, {Component} from 'react'
import {View} from 'react-native'
import {GatewayProvider, GatewayDest} from 'react-gateway'
class RootComponent extends Component {
/* ... */
render () {
const RootRoute = createRootRoute(this.state.isAuthorized)
return this.state.isReady ? (
<GatewayProvider>
<View style={{flex: 1}}>
<RootRoute ref={(el) => (this.rootRoute = el)} />
<Notifier/>
<GatewayDest name="inputAccessory" component={View}/>
</View>
</GatewayProvider>
) : null
}
}Titozzz
Metadata
Metadata
Assignees
Labels
No labels