I want to rotate a simple box in react native. But when I set up the algorithm below it gives the error "TypeError: undefined is not an object (evaluating \'value.getValue\