2017-03-09 11 views
2

https://github.com/chirag04/react-native-in-app-utilsm을 사용하는 iOS 앱에 대한 지불을 설정하려고하는데 NativeModules를로드 할 때 InAppUtils 속성이있어 정의되지 않은 값을 반환하는 작은 문제가 있습니다.Native In App Utils

import { NativeModules } from 'react-native' 
    const { InAppUtils } = NativeModules 
... 
    componentWillMount() { 
    console.log(InAppUtils 
} 

rnpm install --save react-native-in-app-utilsnpm install --save react-native-in-app-utils; react-native-link을 모두 사용하여 설치했습니다. 두 경우 모두 Xcode에서 라이브러리가 제대로 링크 된 것처럼 보입니다.

라이브러리가 제대로 설치되어 있는지 어떻게 확인할 수 있습니까?

답변

0

yarn add react-native-in-app-utils과 함께 설치되었는데 작동하지 않아 react-native link을 실행하고 Xcode에서 응용 프로그램을 다시 작성했습니다.