Update index.js
Update index.js

From the notes:
> Note: Although dimensions are available immediately, they may change (e.g due to device rotation) so any rendering logic or styles that depend on these constants should try to call this function on every render,
knowbody/react-native-text