Example #1
0
 public ReactTextElement(BridgePayload.BridgeMessage.ComponentProps props)
 {
     if (props != null)
     {
         this.UpdateProps(props);
     }
 }
 public void UpdateProps(BridgePayload.BridgeMessage.ComponentProps props)
 {
     if (props.style != null)
     {
         StyleMapper.AssignStyleProps(props.style, this);
     }
 }
Example #3
0
        public void UpdateProps(BridgePayload.BridgeMessage.ComponentProps props)
        {
            if (props.style != null)
            {
                StyleMapper.AssignStyleProps(props.style, this);
            }

            pickingMode = PickingMode.Ignore;
            text        = props.text;
        }
        public void UpdateProps(BridgePayload.BridgeMessage.ComponentProps props)
        {
            if (props.style != null)
            {
                StyleMapper.AssignStyleProps(props.style, this);
            }

            text = props.text;

            if (!string.IsNullOrWhiteSpace(props.value))
            {
                bool.TryParse(props.value, out var tmpValue);
                value = tmpValue;
            }
        }
Example #5
0
        public ReactButtonElement(ReactRenderer renderer, BridgePayload.BridgeMessage.ComponentProps props)
        {
            this.renderer = renderer;

            this.UpdateProps(props);
        }