https://kotlinlang.org logo
#moko
Title
# moko
u

4ntoine

12/23/2019, 7:07 AM
Also is it correct that it’s an intersection of both platforms (that seems to be very limited)? I know one could use
expect/actual
, but anyway..
a

alex009

12/23/2019, 7:13 AM
intersecion at api level - common api should be correct for both platforms, but implementation different. and ui is different between platforms
u

4ntoine

12/23/2019, 7:15 AM
No, i’ve meant props list is an intersection of both platform-specific impls. Eg.if some property is absent on iOS it will be absent in multiplatform abstraction as the is just no possbility to map it to platform-specific impl without adding some code that mimics it.
a

alex009

12/23/2019, 7:20 AM
you have possibility 🙂 but when in common code will be available platfom-specific properties which not work on one of platforms - it will be confuse dev
u

4ntoine

12/23/2019, 7:20 AM
ok, thanks
a

alex009

12/23/2019, 7:20 AM
in standard widgets yes, props it intersecion
u

4ntoine

12/23/2019, 7:21 AM
yup, just wanted to dblcheck
2 Views