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-swipe-gestures": "^1.0.5",
|
||||||
"react-native-video": "^5.2.1",
|
"react-native-video": "^5.2.1",
|
||||||
"react-native-web": "~0.18.7",
|
"react-native-web": "~0.18.7",
|
||||||
|
"react-native-wheel-color-picker": "^1.2.0",
|
||||||
"react-router-dom": "6",
|
"react-router-dom": "6",
|
||||||
"react-router-native": "^6.3.0"
|
"react-router-native": "^6.3.0"
|
||||||
},
|
},
|
||||||
|
@ -11,8 +11,7 @@ import { VideoFile } from './videoFile/VideoFile';
|
|||||||
import { AudioFile } from './audioFile/AudioFile';
|
import { AudioFile } from './audioFile/AudioFile';
|
||||||
import { ImageFile } from './imageFile/ImageFile';
|
import { ImageFile } from './imageFile/ImageFile';
|
||||||
import DocumentPicker from 'react-native-document-picker'
|
import DocumentPicker from 'react-native-document-picker'
|
||||||
import { ColorPicker } from 'react-native-color-picker'
|
import ColorPicker from 'react-native-wheel-color-picker'
|
||||||
import Slider from '@react-native-community/slider';
|
|
||||||
|
|
||||||
export function AddTopic() {
|
export function AddTopic() {
|
||||||
|
|
||||||
@ -210,10 +209,11 @@ export function AddTopic() {
|
|||||||
<Text style={styles.editHeader}>Font Color:</Text>
|
<Text style={styles.editHeader}>Font Color:</Text>
|
||||||
<View style={styles.editColor}>
|
<View style={styles.editColor}>
|
||||||
<ColorPicker
|
<ColorPicker
|
||||||
defaultColor={state.color}
|
color={state.color}
|
||||||
sliderComponent={Slider}
|
onColorChange={actions.setFontColor}
|
||||||
onColorSelected={color => actions.setFontColor(color)}
|
onColorChangeComplete={actions.setFontColor}
|
||||||
style={{flex: 1}} />
|
swatched={false}
|
||||||
|
style={{flex: 1, padding: 8}} />
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.editControls}>
|
<View style={styles.editControls}>
|
||||||
<View style={styles.selection}>
|
<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