Browse Source

Updated readme. Cleanup.

master
Henning Hall 7 years ago
parent
commit
98756114e1
2 changed files with 5 additions and 19 deletions
  1. +5
    -2
      README.md
  2. +0
    -17
      ios/DatePickerX/DatePicker.m

+ 5
- 2
README.md View File

@ -51,6 +51,8 @@ export default class App extends Component {
minuteInterval={5} minuteInterval={5}
minimumDate={today} minimumDate={today}
maximumDate={tomorrow} maximumDate={tomorrow}
textColor={'#ffffff'}
fadeToColor={'#000000'}
/> />
} }
@ -63,7 +65,7 @@ The goal with React Native Date Picker is to make a cross platform variant of [D
## TODO
## Roadmap
- [x] Mode: datetime - [x] Mode: datetime
- [x] Locale support. (AM/PM, 12h/24h toggled and strings translated) - [x] Locale support. (AM/PM, 12h/24h toggled and strings translated)
- [x] Replace todays date with the string "Today" (considering locale) - [x] Replace todays date with the string "Today" (considering locale)
@ -72,8 +74,9 @@ The goal with React Native Date Picker is to make a cross platform variant of [D
- [x] Support maximumDate/minimumDate. - [x] Support maximumDate/minimumDate.
- [x] Minute interval prop. - [x] Minute interval prop.
- [x] Mode: time - [x] Mode: time
- [x] Colored background support.
- [x] Colored text support.
- [ ] Mode: date - [ ] Mode: date
- [ ] Colored background support.
- [ ] Align text to right. - [ ] Align text to right.
<!-- <!--

+ 0
- 17
ios/DatePickerX/DatePicker.m View File

@ -51,23 +51,6 @@
[self addTarget:self action:@selector(didChange) [self addTarget:self action:@selector(didChange)
forControlEvents:UIControlEventValueChanged]; forControlEvents:UIControlEventValueChanged];
} }
unsigned result = 0;
NSScanner *scanner = [NSScanner scannerWithString:@"#0000ff"];
[scanner setScanLocation:1]; // bypass '#' character
[scanner scanHexInt:&result];
[self setValue:UIColorFromRGB(result) forKeyPath:@"textColor"];
SEL selector = NSSelectorFromString(@"setHighlightsToday:");
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[UIDatePicker instanceMethodSignatureForSelector:selector]];
BOOL no = NO;
[invocation setSelector:selector];
[invocation setArgument:&no atIndex:2];
[invocation invokeWithTarget:self];
return self; return self;
} }

Loading…
Cancel
Save