Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

chore(deps): update React Native to 0.31.0 #70

Merged
merged 1 commit into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@angular/platform-server": "v2.0.0-rc.5",
"@angular/router-deprecated": "v2.0.0-rc.2",
"hammerjs": "2.0.6",
"react-native": "0.30.0",
"react-native": "0.31.0",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "mlaval/zone.js#prerelease0.6.13"
Expand Down
2 changes: 1 addition & 1 deletion src/components/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Image extends HighLevelComponent {
/**
* To be documented
*/
set resizeMode(value: string) {this._resizeMode = this.processEnum(value, ['cover', 'contain', 'stretch', 'repeat']);}
set resizeMode(value: string) {this._resizeMode = this.processEnum(value, ['cover', 'contain', 'stretch', 'repeat', 'center']);}

/**
* To be documented
Expand Down
11 changes: 10 additions & 1 deletion src/components/textinput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export class Sample {
[maxLength]="_maxLength" [multiline]="_multiline" [placeholder]="_placeholder" [placeholderTextColor]="_placeholderTextColor" [secureTextEntry]="_secureTextEntry"
[returnKeyType]="_returnKeyType" [selectionColor]="_selectionColor" [selectTextOnFocus]="_selectTextOnFocus"
(tap)="focusTextInput()" (topFocus)="_handleFocus()" (topChange)="_handleChange($event)" (topSubmitEditing)="_handleSubmitEditing($event)"
(topBlur)="_handleBlur()" (topEndEditing)="_handleEndEditing($event)" ${GENERIC_BINDINGS} ${isAndroid() ? ANDROID_BINDINGS : IOS_BINDINGS}></native-textinput>`
(topBlur)="_handleBlur()" (topEndEditing)="_handleEndEditing($event)" (topContentSizeChange)="_handleContentSizeChange($event)"
${GENERIC_BINDINGS} ${isAndroid() ? ANDROID_BINDINGS : IOS_BINDINGS}></native-textinput>`
})
export class TextInput extends HighLevelComponent implements OnInit {
private _nativeElement: Node;
Expand Down Expand Up @@ -79,6 +80,10 @@ export class TextInput extends HighLevelComponent implements OnInit {
* To be documented
*/
@Output() endEditing: EventEmitter<string> = new EventEmitter();
/**
* To be documented
*/
@Output() contentSizeChange: EventEmitter<string> = new EventEmitter();


//Properties
Expand Down Expand Up @@ -244,6 +249,10 @@ export class TextInput extends HighLevelComponent implements OnInit {
this.endEditing.emit(event.text);
}

_handleContentSizeChange(event: any) {
this.contentSizeChange.emit(event);
}

//Commands
/**
* To be documented
Expand Down