mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Add support for image onLoad, onLoadEnd, onError events for IgReactImageView
Summary: Create separate buck library for image events so you can depend on that without depending on all of fresco Reviewed By: brosenfeld Differential Revision: D3907894 fbshipit-source-id: dca7a00d38b8b8bb5bab05b6883f6933fff3fa76
This commit is contained in:
parent
826d7345ad
commit
17219720e4
@ -1,8 +1,28 @@
|
||||
include_defs('//ReactAndroid/DEFS')
|
||||
|
||||
IMAGE_EVENT_FILES = [
|
||||
'ImageLoadEvent.java',
|
||||
]
|
||||
|
||||
android_library(
|
||||
name = 'imageevents',
|
||||
srcs = IMAGE_EVENT_FILES,
|
||||
deps = [
|
||||
react_native_dep('third-party/android/support-annotations:android-support-annotations'),
|
||||
react_native_dep('third-party/android/support/v4:lib-support-v4'),
|
||||
react_native_dep('third-party/java/jsr-305:jsr-305'),
|
||||
react_native_target('java/com/facebook/react/bridge:bridge'),
|
||||
react_native_target('java/com/facebook/react/uimanager:uimanager'),
|
||||
],
|
||||
visibility = ['PUBLIC'],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = 'image',
|
||||
srcs = glob(['*.java']),
|
||||
srcs = glob(['*.java'], excludes = IMAGE_EVENT_FILES),
|
||||
exported_deps = [
|
||||
':imageevents',
|
||||
],
|
||||
deps = [
|
||||
CSSLAYOUT_TARGET,
|
||||
react_native_dep('libraries/fresco/fresco-react-native:fbcore'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user