Permalink
Browse files

changed param of setSrc() method

Summary:
setSource() method of ReactImageView class accepts a ReadableArray and not a plain String.

<!--
Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos!

Please read the Contribution Guidelines at https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md to learn more about contributing to React Native.

Happy contributing!
-->
Closes #15280

Differential Revision: D5526483

Pulled By: javache

fbshipit-source-id: 5bc8ca8e7e030f5a4968cccf8fcb7431612e1836
  • Loading branch information...
Niranjan-B authored and facebook-github-bot committed Jul 31, 2017
1 parent 52d546c commit e61257cd0a85bc4dc40d557998dc9a64802cee61
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/NativeComponentsAndroid.md
@@ -71,8 +71,8 @@ Setter declaration requirements for methods annotated with `@ReactPropGroup` are
```java
@ReactProp(name = "src")
public void setSrc(ReactImageView view, @Nullable String src) {
view.setSource(src);
public void setSrc(ReactImageView view, @Nullable ReadableArray sources) {
view.setSource(sources);
}
@ReactProp(name = "borderRadius", defaultFloat = 0f)

0 comments on commit e61257c

Please sign in to comment.