Platform

Analog of the Platform module at React Native, React Sketchapp.

API

OS

Platform.OS returns "figma""

Version

Platform.Version returns 1

Platform.select

When given an object containing Platform.OS as keys, returns the value for the platform you are currently running on.

const value = Platform.select({
figma: () => ...
})