From 6ddd157f58da8e5ab888ffd495ac5af236dd084e Mon Sep 17 00:00:00 2001 From: Baris Sencan Date: Fri, 13 Nov 2015 14:36:15 -0800 Subject: [PATCH] [Android] Default prop values --- .../java/com/brentvatne/react/ReactVideoViewManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java b/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java index 832a20aa..9645e777 100644 --- a/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java +++ b/android/src/main/java/com/brentvatne/react/ReactVideoViewManager.java @@ -91,22 +91,22 @@ public class ReactVideoViewManager extends SimpleViewManager { videoView.setResizeModeModifier(ScalableType.values()[Integer.parseInt(resizeModeOrdinalString)]); } - @ReactProp(name = PROP_REPEAT) + @ReactProp(name = PROP_REPEAT, defaultBoolean = false) public void setRepeat(final ReactVideoView videoView, final boolean repeat) { videoView.setRepeatModifier(repeat); } - @ReactProp(name = PROP_PAUSED) + @ReactProp(name = PROP_PAUSED, defaultBoolean = false) public void setPaused(final ReactVideoView videoView, final boolean paused) { videoView.setPausedModifier(paused); } - @ReactProp(name = PROP_MUTED) + @ReactProp(name = PROP_MUTED, defaultBoolean = false) public void setMuted(final ReactVideoView videoView, final boolean muted) { videoView.setMutedModifier(muted); } - @ReactProp(name = PROP_VOLUME) + @ReactProp(name = PROP_VOLUME, defaultFloat = 1.0f) public void setVolume(final ReactVideoView videoView, final float volume) { videoView.setVolumeModifier(volume); }