Suppose I have a custom CoolButton object that accepts props like width={20} height={50} and backgroundColor={"#fff"}. Is there a way I could put all the props in a different file and then invoke these props with a single name?
So for example:
props.js
allProps = {
width={20},
height={50},
backgroundColor={"#fff"}
}
app.js
<CoolButton allProps><Text>Button Text</Text></CoolButton>