-
Notifications
You must be signed in to change notification settings - Fork 260
Enhanced pie chart multicolor support, jest tests, & updated example sync util #36
Conversation
One more thing to point out. If you try to run
Unfortunately, Jest doesn't really give you an option for avoiding these warnings - see this open issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple questions
<View> | ||
<Pie | ||
data={data} | ||
<ScrollView horizontal={true} style={{flex:1,backgroundColor:'#F5FCFF'}} contentContainerStyle={{justifyContent:'center',alignItems:'center'}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a ScrollView actually needed here? (i've not opened example app just yet to view this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed and was a bit accidental but I don't see it as harmful. It can actually be useful if someone changes the chart size beyond what can be rendered on one screen. Willing to change it back if you think it makes more sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say it would probably make best sense as a specific scroll demo chart for a column bar chart... pie chart would not be as likely to scroll horizontally. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely fair point. I changed it back
@@ -3,12 +3,16 @@ | |||
"version": "0.0.1", | |||
"private": true, | |||
"scripts": { | |||
"start": "node node_modules/react-native/local-cli/cli.js start" | |||
"start": "node node_modules/react-native/local-cli/cli.js start", | |||
"sync-rnpc": "rm -rf ./node_modules/react-native-pathjs-charts; sane '/usr/bin/rsync -v -a --exclude .git --exclude example --exclude node_modules ../ ./node_modules/react-native-pathjs-charts/' .. --glob='{**/*.json,**/*.js}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation for the old way was mostly removed, but doesn't look like readme was updated (remove old info and update with new)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Done
sync-rnpc
script in the example directory (Approach borrowed from the example in react-native-router-flux)