Skip to content

Conversation

@Taym95
Copy link
Contributor

@Taym95 Taym95 commented Sep 21, 2017

This example shows how to take long shot to scrollview with ViewShot .

@gre
Copy link
Owner

gre commented Sep 22, 2017

interesting! that approach kinda make snapshotContentContainer useless I like it :)

would you mind moving the example inside the previous block (no need of that "With ScrollView" section I think, just another example in the previous code snippet.

also maybe you can use the "ExampleCaptureOnMountSimpler" style,

e.g.

class ExampleCaptureScrollViewContent extends Component {
  onCapture = uri => {
    console.log("do something with ", uri);
  }
  render() {
    return (
      <ScrollView>
        <ViewShot onCapture={this.onCapture} captureMode="mount">
          <Text>...The Scroll View Content Goes Here...</Text>
        </ViewShot>
      </ScrollView>
    );
  }
}

@gre gre merged commit 228f9bc into gre:master Sep 22, 2017
@Taym95
Copy link
Contributor Author

Taym95 commented Sep 22, 2017

Thanks Man :)

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

Successfully merging this pull request may close these issues.

2 participants