However, I'm seeing a Cannot call 'StyleSheet.create' with object literal bound to 'obj' because function [1] is incompatible with '$Shape of ____DangerouslyImpreciseStyle_Internal' [2] in property 'mainFooterCont'.
Building it and having it rendered results in no issues, but curious if there's a reason this was typed to not accept functions.
flow-bin: 0.114.0
In my React Native app I'm trying to pass down props to Stylesheet like in this example:
in StyleSheet.create
However, I'm seeing a
Cannot call 'StyleSheet.create' with object literal bound to 'obj' because function [1] is incompatible with '$Shape
of____DangerouslyImpreciseStyle_Internal' [2] in property 'mainFooterCont'.
Building it and having it rendered results in no issues, but curious if there's a reason this was typed to not accept functions.