We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
React fails to validate View on GatewayDest as a value of component property.
View
GatewayDest
component
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 } }
The text was updated successfully, but these errors were encountered:
Same issue here.
Sorry, something went wrong.
Since it's expecting a string or function, this satisfies the prop type:
<GatewayDest name="inputAccessory" component={ props => <View { ...props } /> }/>
No branches or pull requests
React fails to validate
View
onGatewayDest
as a value ofcomponent
property.Code:
The text was updated successfully, but these errors were encountered: