Skip to content

Commit 5a75c57

Browse files
Icon cant be set yet, made a note
1 parent dc3a030 commit 5a75c57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fab.ios.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,20 @@ FloatingActionButtonStyler.registerHandlers();
103103

104104

105105
/* SETUP PROPERTIES */
106+
//Background Color
106107
function onBackColorPropertyChanged(data) {
107108
if(color.Color.isValid(data.newValue)){
108109
var fab = data.object;
109110
fab.ios.buttonColor = new color.Color(data.newValue).ios;
110111
}
111112
}
112113
common.Fab.backColorProperty.metadata.onSetNativeValue = onBackColorPropertyChanged;
114+
115+
//Icon
116+
function onIconPropertyChanged(data) {
117+
if(ImageSource.isFileOrResourcePath(data.newValue)){
118+
//Cocoapod doesn't support this yet afaik
119+
//var newImage = ImageSource.fromFileOrResource(data.newValue);
120+
}
121+
}
122+
common.Fab.iconProperty.metadata.onSetNativeValue = onIconPropertyChanged;

0 commit comments

Comments
 (0)