You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/09/11 11:13:50 UTC

[GitHub] [incubator-weex] YorkShen commented on issue #2833: [Android] Android SDK custom WXComponent, there are multiple properties defined using @WXComponentProp, how do I know when all properties are passed from JS to native?

YorkShen commented on issue #2833: [Android] Android SDK custom WXComponent, there are multiple properties defined using @WXComponentProp, how do I know when all properties are passed from JS to native?
URL: https://github.com/apache/incubator-weex/issues/2833#issuecomment-530334936
 
 
   You can combine multiple properties into one. 
   
   ```
   @WXComponentProp(name = "lottie")
   public void setLoop(final com.alibaba.fastjson.JSONObjcet map) {
   
   }
   ```
   
   ```
   <template>
   <lottie class="lottie" :lottie="url"></lottie>
   </template>
   
   <script>
   export default {
       data () {
           return {
               lottie: {
                       key_A: value_A,
                       key_B: value_B
                }
            }
        }
   }
   </script>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services