Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property of 'getPhotos' of underfined #106

Open
73R3WY opened this issue Apr 4, 2020 · 2 comments
Open

Cannot read property of 'getPhotos' of underfined #106

73R3WY opened this issue Apr 4, 2020 · 2 comments

Comments

@73R3WY
Copy link

73R3WY commented Apr 4, 2020

"dependencies": {
"@react-native-community/cameraroll": "^1.3.0",
...,
"react-native-camera-roll-picker": "2.0.0",
...,
}

Using react 16.9.0
Using react-native Expo SDK 36

Referencing:

Having a console log before

    CameraRoll.getPhotos(fetchParams)
      .then(data => this.appendImages(data), e => console.log(e));

will show that CameraRoll is not undefined.

My view definition is something like this:

      <TouchableOpacity
        style={[styles.container, this.props.containerStyle]}
        onPress={this.onActionsPress}
      >
        <Modal
          animationType={"slide"}
          transparent={false}
          visible={this.state.modalVisible}
          onRequestClose={() => {
            this.setModalVisible(false);
          }}
        >
          {this.renderNavBar()}
          <CameraRollPicker
            maximum={10}
            imagesPerRow={4}
            callback={this.selectImages}
            selected={[]}
          />
        </Modal>
        {this.renderIcon()}
      </TouchableOpacity>
@theasc
Copy link

theasc commented Apr 20, 2020

Did you do link correctly like pod install?

@73R3WY
Copy link
Author

73R3WY commented Apr 20, 2020

Yes @theasc , I even linked the libraries manually and executed pod install on ios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants