-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React from 'react'; | ||
import AppIntro from 'react-native-app-intro'; | ||
|
||
const Onboarding = ({onDone}) => { | ||
const pageArray = [{ | ||
title: 'Yup', | ||
description: 'Swipe to the right when you like a product and want to know more. You will find it later in your list', | ||
img: require('../../img/swipe_right.png'), | ||
imgStyle: { | ||
height: 200, | ||
width: 200, | ||
}, | ||
backgroundColor: '#fa931d', | ||
fontColor: '#fff', | ||
level: 10, | ||
}, { | ||
title: 'Nope', | ||
description: 'Swipe to the left to ignore a product.', | ||
img: require('../../img/swipe_left.png'), | ||
imgStyle: { | ||
height: 200, | ||
width: 200, | ||
}, | ||
backgroundColor: '#e17a04', | ||
fontColor: '#fff', | ||
level: 10, | ||
}, | ||
{ | ||
title: 'View on PH', | ||
description: 'Remember to upvote your favorite project on product hunt from your like list.', | ||
img: require('../../img/upvote.png'), | ||
imgStyle: { | ||
height: 200, | ||
width: 200, | ||
}, | ||
backgroundColor: '#c76000', | ||
fontColor: '#fff', | ||
level: 10, | ||
}]; | ||
return ( | ||
<AppIntro | ||
customStyles={{ | ||
nextButtonText: { | ||
fontSize: 25, | ||
fontFamily: 'Roboto' | ||
} | ||
}} | ||
onDoneBtnClick={onDone} | ||
onSkipBtnClick={onDone} | ||
pageArray={pageArray} | ||
/> | ||
); | ||
} | ||
|
||
export default Onboarding; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -442,6 +442,18 @@ assert@^1.1.1: | |
dependencies: | ||
util "0.10.3" | ||
|
||
assign-deep@^0.4.5: | ||
version "0.4.5" | ||
resolved "https://registry.yarnpkg.com/assign-deep/-/assign-deep-0.4.5.tgz#d7c76caa123020114f550c66f0823c559f39af13" | ||
dependencies: | ||
assign-symbols "^0.1.1" | ||
is-primitive "^2.0.0" | ||
kind-of "^3.0.2" | ||
|
||
assign-symbols@^0.1.1: | ||
version "0.1.1" | ||
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-0.1.1.tgz#cb025944ef4ec8a3693f086e9e112c74e3a0fed9" | ||
|
||
async-each@^1.0.0: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" | ||
|
@@ -5929,6 +5941,13 @@ react-modal@^1.7.6: | |
prop-types "^15.5.7" | ||
react-dom-factories "^1.0.0" | ||
|
||
react-native-app-intro@^1.1.5: | ||
version "1.1.5" | ||
resolved "https://registry.yarnpkg.com/react-native-app-intro/-/react-native-app-intro-1.1.5.tgz#34a2d2265b2d654d31bae743c404856c37448692" | ||
dependencies: | ||
assign-deep "^0.4.5" | ||
react-native-swiper "git+https://github.com/FuYaoDe/react-native-swiper.git" | ||
|
||
[email protected]: | ||
version "2.0.0-beta.3" | ||
resolved "https://registry.yarnpkg.com/react-native-branch/-/react-native-branch-2.0.0-beta.3.tgz#2167af86bbc9f964bd45bd5f37684e5b54965e32" | ||
|
@@ -6008,6 +6027,12 @@ [email protected]: | |
color "^0.11.1" | ||
lodash "^4.16.6" | ||
|
||
"react-native-swiper@git+https://github.com/FuYaoDe/react-native-swiper.git": | ||
version "1.4.4" | ||
resolved "git+https://github.com/FuYaoDe/react-native-swiper.git#a6417ff41a8b2d490bdcc4541015ab35736d4595" | ||
dependencies: | ||
react-timer-mixin "^0.13.3" | ||
|
||
react-native-tab-view@^0.0.65: | ||
version "0.0.65" | ||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.65.tgz#b685ea3081ff7c96486cd997361026c407302c59" | ||
|