mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
switching out color picker
This commit is contained in:
parent
f6935f891c
commit
131d880d0e
@ -38,6 +38,7 @@
|
||||
"react-native-swipe-gestures": "^1.0.5",
|
||||
"react-native-video": "^5.2.1",
|
||||
"react-native-web": "~0.18.7",
|
||||
"react-native-wheel-color-picker": "^1.2.0",
|
||||
"react-router-dom": "6",
|
||||
"react-router-native": "^6.3.0"
|
||||
},
|
||||
|
@ -11,8 +11,7 @@ import { VideoFile } from './videoFile/VideoFile';
|
||||
import { AudioFile } from './audioFile/AudioFile';
|
||||
import { ImageFile } from './imageFile/ImageFile';
|
||||
import DocumentPicker from 'react-native-document-picker'
|
||||
import { ColorPicker } from 'react-native-color-picker'
|
||||
import Slider from '@react-native-community/slider';
|
||||
import ColorPicker from 'react-native-wheel-color-picker'
|
||||
|
||||
export function AddTopic() {
|
||||
|
||||
@ -210,10 +209,11 @@ export function AddTopic() {
|
||||
<Text style={styles.editHeader}>Font Color:</Text>
|
||||
<View style={styles.editColor}>
|
||||
<ColorPicker
|
||||
defaultColor={state.color}
|
||||
sliderComponent={Slider}
|
||||
onColorSelected={color => actions.setFontColor(color)}
|
||||
style={{flex: 1}} />
|
||||
color={state.color}
|
||||
onColorChange={actions.setFontColor}
|
||||
onColorChangeComplete={actions.setFontColor}
|
||||
swatched={false}
|
||||
style={{flex: 1, padding: 8}} />
|
||||
</View>
|
||||
<View style={styles.editControls}>
|
||||
<View style={styles.selection}>
|
||||
|
10118
app/mobile/yarn.lock
10118
app/mobile/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user