react-native-web-headroom
Version:
React Native Web Headroom
13 lines (9 loc) • 332 B
JavaScript
/* @flow */
import type {PluginConfig, PluginResult} from './index';
import {getPrefixedStyle} from '../prefixer';
export default function prefixPlugin(
{config, style}: PluginConfig, // eslint-disable-line no-shadow
): PluginResult {
const newStyle = getPrefixedStyle(style, config.userAgent);
return {style: newStyle};
}