-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathRNCMaskedViewManager.java
More file actions
35 lines (28 loc) · 1.01 KB
/
RNCMaskedViewManager.java
File metadata and controls
35 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package org.reactnative.maskedview;
import android.view.View;
import android.widget.Toast;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.common.MapBuilder;
import com.facebook.react.uimanager.SimpleViewManager;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.ViewGroupManager;
import com.facebook.react.uimanager.annotations.ReactProp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class RNCMaskedViewManager extends ViewGroupManager<RNCMaskedView> {
private static final String REACT_CLASS = "RNCMaskedView";
@Override
public String getName() {
return REACT_CLASS;
}
@Override
protected RNCMaskedView createViewInstance(ThemedReactContext themedReactContext) {
return new RNCMaskedView(themedReactContext);
}
@ReactProp(name = "porterDuffMode")
public void setPorterDuffMode(RNCMaskedView view, String mode) {
view.setPorterDuffMode(mode);
}
}