Last active
December 23, 2018 04:48
-
-
Save vivek1794/f7d619b8c9a9f3c45166fd3c771bebbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.vivekc.shared | |
//Mark the function dependent on platform implementation to be `expect` | |
expect fun getCurrentDate(): String | |
//This is the function which would be called by the Android or iOS app | |
fun getDate(): String { | |
return "Today's Date is ${getCurrentDate()}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment