I am building a simple react-native component, which uses itself a component which requires an attribue which is only a key. For example:
export default class MyComponent extends Component {
render() {
return (
<LineChart bezier />
);
}
}
The component my component uses is LineChart, which expects an attribute like bezier.
I don't know how I could pass this attribute to LineChart in a dynamic way, i.e. using a prop... I did try something like:
<LineChart this.props.interpolation />
But this is not syntactically valid.
Any clue?