message: add platform in ConfigProvider
diff: @@ -10,6 +10,7 @@ import {
  } from './ConfigProviderContext';
  import { HasChildren } from '../../types';
  import vkBridge, { AppearanceSchemeType } from '@vkontakte/vk-bridge';
  +import { platform, OS, OSType } from '../../lib/platform';
  export interface ConfigProviderProps extends ConfigProviderContextInterface, HasChildren {}
  @@ -20,6 +21,7 @@ export interface ConfigProviderChildContextType {
  appearance: Validator<Appearance>;
  app: Validator<string>;
  transitionMotionEnabled: Validator<boolean>;
  + platform: Validator<OSType>;
  }
  export default class ConfigProvider extends React.Component<ConfigProviderProps> {
  @@ -36,6 +38,7 @@ export default class ConfigProvider extends React.Component<ConfigProviderProps>
  scheme: Scheme.BRIGHT_LIGHT,
  appearance: Appearance.LIGHT,
  transitionMotionEnabled: true,
  + platform: platform(),
  };
  static childContextTypes: ConfigProviderChildContextType = {
  @@ -50,6 +53,7 @@ export default class ConfigProvider extends React.Component<ConfigProviderProps>
  appearance: PropTypes.oneOf([Appearance.DARK, Appearance.LIGHT]),
  app: PropTypes.string,
  transitionMotionEnabled: PropTypes.bool,
  + platform: PropTypes.oneOf([OS.ANDROID, OS.IOS, OS.VKCOM]),
  };
  mapOldScheme(scheme: AppearanceSchemeType): AppearanceSchemeType {
  @@ -81,6 +85,7 @@ export default class ConfigProvider extends React.Component<ConfigProviderProps>
  appearance: this.props.appearance,
  app: this.props.app,
  transitionMotionEnabled: this.props.transitionMotionEnabled,
  + platform: this.props.platform,
  };
  }
  