diff --git a/README.md b/README.md index fc40bfa..965814d 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,9 @@ android { - `xlight` - extra light blur type - `light` - light blur type - `dark` - dark blur type + - `extraDark` - extra dark blur type (tvOS only) + - `regular` - regular blur type (tvOS only) + - `prominent` - prominent blur type (tvOS only) - `blurAmount` (Default: 10, Number) - `0-100` - Adjusts blur intensity diff --git a/ios/BlurView.m b/ios/BlurView.m index 4a7a871..85ea72b 100644 --- a/ios/BlurView.m +++ b/ios/BlurView.m @@ -53,6 +53,13 @@ if ([self.blurType isEqual: @"xlight"]) return UIBlurEffectStyleExtraLight; if ([self.blurType isEqual: @"light"]) return UIBlurEffectStyleLight; if ([self.blurType isEqual: @"dark"]) return UIBlurEffectStyleDark; + + #ifdef TARGET_OS_TV + if ([self.blurType isEqual: @"extraDark"]) return UIBlurEffectStyleExtraDark; + if ([self.blurType isEqual: @"regular"]) return UIBlurEffectStyleRegular; + if ([self.blurType isEqual: @"prominent"]) return UIBlurEffectStyleProminent; + #endif + return UIBlurEffectStyleDark; } diff --git a/src/BlurView.ios.js b/src/BlurView.ios.js index 8014fb1..f726d9f 100644 --- a/src/BlurView.ios.js +++ b/src/BlurView.ios.js @@ -2,6 +2,12 @@ import React, { Component, PropTypes } from 'react'; import { View, requireNativeComponent, ViewPropTypes } from 'react-native'; class BlurView extends Component { + setNativeProps = nativeProps => { + if (this._root) { + this._root.setNativeProps(nativeProps); + } + } + render() { return ( { + if (this._root) { + this._root.setNativeProps(nativeProps); + } + } + render() { return (