React native null不是React Native中的对象(计算';"React NativeContactsWrapper.default.getContact';)

React native null不是React Native中的对象(计算';"React NativeContactsWrapper.default.getContact';),react-native,contacts,React Native,Contacts,我想打开Contacts应用程序并选择一个,因此我正在使用ContactsRapper,但当我按下按钮时,出现了错误 import ContactsWrapper from 'react-native-contacts-wrapper'; const openContacts = () => { ContactsWrapper.getContact() .then((contact) => { // Replace this code console.log(c

我想打开Contacts应用程序并选择一个,因此我正在使用ContactsRapper,但当我按下按钮时,出现了错误

import ContactsWrapper from 'react-native-contacts-wrapper';

const openContacts = () => {
ContactsWrapper.getContact()
  .then((contact) => {
    // Replace this code
    console.log(contact);
  })
  .catch((error) => {
    console.log('ERROR CODE: ', error.code);
    console.log('ERROR MESSAGE: ', error.message);
  });
};

<TouchableOpacity
 onPress={openContacts}
        >
      <Text style={{ ...stylesBrandon.tEditPerfil, alignSelf: 'center' }}>
            Invitar a contacto
       </Text>
</TouchableOpacity>

您好,您是否遵循github上的安装指南?
TypeError: null is not an object (evaluating '_reactNativeContactsWrapper.default.getContact')