Skip to content

Commit

Permalink
fix: addElemToList style
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Oct 12, 2021
1 parent 53e1251 commit 9b20f99
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 75 deletions.
8 changes: 4 additions & 4 deletions src/components/AddElemToList.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export default ({
}}>
<CircledIcon
icon="PlusSvg"
color="#F4FCFD"
borderColor="#D4F0F2"
iconColor={colors.BLUE}
color={colors.LIGHT_BLUE}
borderColor="#fff"
iconColor="#fff"
width={13}
height={13}
opacity={value ? 1 : 0.5}
opacity={value ? 1 : 0.38}
/>
</TouchableOpacity>
</View>
Expand Down
71 changes: 0 additions & 71 deletions src/scenes/onboarding/onboardingSymptoms/AddElemToList.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/scenes/onboarding/onboardingSymptoms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ const SymptomScreen = ({navigation, route}) => {
style={styles.checkbox}
value={chosenCategories[cat]}
onValueChange={(newValue) => setToogleCheckbox(cat, newValue)}
// for android
tintColors={{true: colors.LIGHT_BLUE, false: '#aaa'}}
// for ios
tintColor="#aaa"
onCheckColor={colors.LIGHT_BLUE}
onTintColor={colors.LIGHT_BLUE}
onAnimationType="bounce"
offAnimationType="bounce"
/>
</View>
))}
Expand Down
8 changes: 8 additions & 0 deletions src/scenes/symptoms/symptoms-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ const SymptomScreen = ({navigation, route}) => {
style={styles.checkbox}
value={chosenCategories[cat]}
onValueChange={(newValue) => setToogleCheckbox(cat, newValue)}
// for android
tintColors={{true: colors.LIGHT_BLUE, false: '#aaa'}}
// for ios
tintColor="#aaa"
onCheckColor={colors.LIGHT_BLUE}
onTintColor={colors.LIGHT_BLUE}
onAnimationType="bounce"
offAnimationType="bounce"
/>
</View>
))}
Expand Down

0 comments on commit 9b20f99

Please sign in to comment.