|
22 | 22 | import android.graphics.RectF; |
23 | 23 | import android.graphics.Region; |
24 | 24 | import android.view.ViewParent; |
| 25 | +import com.facebook.react.bridge.Arguments; |
25 | 26 | import com.facebook.react.bridge.ColorPropConverter; |
26 | 27 | import com.facebook.react.bridge.Dynamic; |
27 | 28 | import com.facebook.react.bridge.JSApplicationIllegalArgumentException; |
|
30 | 31 | import com.facebook.react.bridge.ReadableArray; |
31 | 32 | import com.facebook.react.bridge.ReadableMap; |
32 | 33 | import com.facebook.react.bridge.ReadableType; |
| 34 | +import com.facebook.react.bridge.WritableMap; |
33 | 35 | import com.facebook.react.touch.ReactHitSlopView; |
| 36 | +import com.facebook.react.uimanager.events.RCTEventEmitter; |
34 | 37 | import com.facebook.react.uimanager.PointerEvents; |
35 | 38 | import java.lang.reflect.Field; |
36 | 39 | import java.util.ArrayList; |
@@ -98,6 +101,14 @@ public abstract class RenderableView extends VirtualView implements ReactHitSlop |
98 | 101 | private @Nullable ArrayList<String> mAttributeList; |
99 | 102 | private @Nullable RenderableView mCaller; |
100 | 103 |
|
| 104 | + public void onReceiveNativeEvent() { |
| 105 | + WritableMap event = Arguments.createMap(); |
| 106 | + ReactContext reactContext = (ReactContext)getContext(); |
| 107 | + reactContext |
| 108 | + .getJSModule(RCTEventEmitter.class) |
| 109 | + .receiveEvent(getId(), "topSvgLayout", event); |
| 110 | + } |
| 111 | + |
101 | 112 | @Nullable String mFilter; |
102 | 113 |
|
103 | 114 | private static final Pattern regex = Pattern.compile("[0-9.-]+"); |
|
0 commit comments