import ReactNativePropRegistry from"./ReactNativePropRegistry";import invariant from"fbjs/lib/invariant";function getStyle(t){return"number"==typeof t?ReactNativePropRegistry.getByID(t):t}function flattenStyle(t){if(t){if("production"!==process.env.NODE_ENV&&invariant(!0!==t,"style may be false but not true"),!Array.isArray(t))return getStyle(t);for(var e={},r=0,a=t.length;r<a;++r){var i=flattenStyle(t[r]);if(i)for(var n in i){var o=i[n];e[n]=o}}return e}}export default flattenStyle;