RNDeviceInfo is null

Hi,

I’ve got this error while trying to get my unique ID from a device.I’ve imported the import { getUniqueId } from 'react-native-device-info'; (and also tried the import DeviceInfo from 'react-native-device-info';).

const uuaid = getUniqueId();

How can I solve this please? Thanks (I’m in React Native > 0.59)