I have following functionality in React Native app
const GreenWood = ({x,y,z,f1,f2, f3}) => {
...
}
I need to convert it to class
class GreenWood extends Component {
constructor(props) {
super(props);
}
...
}
But my props x, y, x are undefined. How to propely forward them?