Tutorial: Platform.getCurrentSync

Platform.getCurrentSync

Synchronously returns a Platform object that represents the current platform.

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