Open pke opened 2 years ago
I think it would be possible and make a nice API if one could always use <AddWalletButton> on both Android and iOS systems. On Android it could be implemented as a component with a render function.
<AddWalletButton>
<AddWalletButton> {(addPass) => ( <MyAndroidAddButton onPress={addPass} title="Add To Wallet"/> )} </AddWalletButton>
The render function is only ever called if canAddPasses evaluates to true. On iOS its never called, cause the button is rendered natively.
canAddPasses
true
What do you think?
I think it would be possible and make a nice API if one could always use
<AddWalletButton>
on both Android and iOS systems. On Android it could be implemented as a component with a render function.The render function is only ever called if
canAddPasses
evaluates totrue
. On iOS its never called, cause the button is rendered natively.What do you think?