Tutorial: Platform.getCurrent

Platform.getCurrent

Asynchronously returns a Platform object that represents the current platform.

const platform = await fin.Platform.getCurrent();
// Use wrapped instance to control layout, e.g.:
const snapshot = await platform.getSnapshot();