From 80fed9a969aaa1da9395c317c6d345865d68b375 Mon Sep 17 00:00:00 2001 From: Brad Schwarz Date: Sat, 18 Feb 2017 14:53:01 -0500 Subject: [PATCH 1/3] Merged Component Definitions Merged iOS and Android Component Definitions. --- CarouselPager.android.js | 43 ------------------------ CarouselPager.ios.js => CarouselPager.js | 0 2 files changed, 43 deletions(-) delete mode 100644 CarouselPager.android.js rename CarouselPager.ios.js => CarouselPager.js (100%) diff --git a/CarouselPager.android.js b/CarouselPager.android.js deleted file mode 100644 index b292fbc..0000000 --- a/CarouselPager.android.js +++ /dev/null @@ -1,43 +0,0 @@ -var React = require('react'); -var { - View, - ViewPagerAndroid, -} = require('react-native'); - -var CarouselPager = React.createClass({ - - scrollToPage(page, animated) { - if (typeof animated === 'undefined') { - animated = true; - } - if (animated) { - this.refs.viewPager.setPage(page); - } else { - this.refs.viewPager.setPageWithoutAnimation(page); - } - this._onPageSelected(page); - }, - - _onPageSelected(page) { - this.props.onEnd(page); - }, - - render() { - return this._onPageSelected(e.nativeEvent.position)} - scrollsToTop={false} - > - {this.props.children.map((c, idx) => {c})} - ; - }, -}); - -module.exports = CarouselPager; diff --git a/CarouselPager.ios.js b/CarouselPager.js similarity index 100% rename from CarouselPager.ios.js rename to CarouselPager.js From 1a3a424f31e8dffab9e57ba1d02e11f9c3827a04 Mon Sep 17 00:00:00 2001 From: "whitesource-bolt-for-github[bot]" <42819689+whitesource-bolt-for-github[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2020 21:45:54 +0000 Subject: [PATCH 2/3] Add .whitesource configuration file --- .whitesource | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .whitesource diff --git a/.whitesource b/.whitesource new file mode 100644 index 0000000..004ba82 --- /dev/null +++ b/.whitesource @@ -0,0 +1,11 @@ +{ + "scanSettings": { + "baseBranches": [] + }, + "checkRunSettings": { + "vulnerableCheckRunConclusionLevel": "failure" + }, + "issueSettings": { + "minSeverityLevel": "LOW" + } +} \ No newline at end of file From 568814504dbd60c58de0c085018e519934ba5767 Mon Sep 17 00:00:00 2001 From: Bradford Technology Solutions Date: Wed, 22 Jul 2020 17:56:34 -0400 Subject: [PATCH 3/3] Update README.md Added SomaType DepShield Badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ffcac25..48a31d1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![DepShield Badge](https://depshield.sonatype.org/badges/bradsolves/react-native-carousel/depshield.svg)](https://depshield.github.io) + ## Carousel component for react-native ### Installation