Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit c6ea64c

Browse files
committed
Merge pull request #71 from darrencamp/fix-polyfil-ripple-style-for-ios
iOS bugfix: Check styles instance of Object
2 parents 483b5e4 + 3bd846a commit c6ea64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/polyfill/Ripple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class Ripple extends Component {
4242
// Extract padding, margin from style since IOS overflow: hidden has issues with the shadow
4343
if(Platform.OS == 'ios') {
4444
({outerStyle, innerStyle} = (style instanceof Array ? style : [style]).reduce((obj, styles) => {
45-
if (styles !== null) {
45+
if (styles instanceof Object) {
4646
Object.entries(styles).forEach(
4747
([name, value]) =>
4848
[

0 commit comments

Comments
 (0)