└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # react-native-animated-props 2 | 3 | 4 | ![](https://cultofthepartyparrot.com/parrots/hd/parrot.gif) 5 | 6 | What if I tell you could replace: 7 | 8 | ```javascript 9 | this.val.addListener(({ value }) => { 10 | this.ref.current.setNativeProps({ 11 | style: { 12 | width: value, 13 | height: value 14 | } 15 | }) 16 | }) 17 | ``` 18 | with 19 | ```javascript 20 | connect(this.ref.current, this.val, "width") 21 | connect(this.ref.current, this.val, "height") 22 | ``` 23 | in order to omit JS trip 24 | 25 | ![](https://cultofthepartyparrot.com/parrots/hd/fastparrot.gif) 26 | --------------------------------------------------------------------------------