react-native-timezone icon indicating copy to clipboard operation
react-native-timezone copied to clipboard

docs: Updated code example to prevent syntax error

Open ace-builds opened this issue 1 year ago • 0 comments

Changes Made

The code example in docs contains a syntax error caused by capitalization

import TimeZone from 'react-native-timezone';

in the above, TimeZone is wrong as other implementations in the docs reference Timezone eg.

const timezone = Timezone.getTimeZone();

change the capitalization of "Z" to lowercase in "TimeZone" fixes the issue

ace-builds avatar Aug 19 '24 08:08 ace-builds