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

Commit de22f2f

Browse files
authored
chore(deps): update React Native to 0.31.0 (#70)
1 parent e047192 commit de22f2f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@angular/platform-server": "v2.0.0-rc.5",
5858
"@angular/router-deprecated": "v2.0.0-rc.2",
5959
"hammerjs": "2.0.6",
60-
"react-native": "0.30.0",
60+
"react-native": "0.31.0",
6161
"reflect-metadata": "0.1.3",
6262
"rxjs": "5.0.0-beta.6",
6363
"zone.js": "mlaval/zone.js#prerelease0.6.13"

src/components/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Image extends HighLevelComponent {
5959
/**
6060
* To be documented
6161
*/
62-
set resizeMode(value: string) {this._resizeMode = this.processEnum(value, ['cover', 'contain', 'stretch', 'repeat']);}
62+
set resizeMode(value: string) {this._resizeMode = this.processEnum(value, ['cover', 'contain', 'stretch', 'repeat', 'center']);}
6363

6464
/**
6565
* To be documented

src/components/textinput.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export class Sample {
4242
[maxLength]="_maxLength" [multiline]="_multiline" [placeholder]="_placeholder" [placeholderTextColor]="_placeholderTextColor" [secureTextEntry]="_secureTextEntry"
4343
[returnKeyType]="_returnKeyType" [selectionColor]="_selectionColor" [selectTextOnFocus]="_selectTextOnFocus"
4444
(tap)="focusTextInput()" (topFocus)="_handleFocus()" (topChange)="_handleChange($event)" (topSubmitEditing)="_handleSubmitEditing($event)"
45-
(topBlur)="_handleBlur()" (topEndEditing)="_handleEndEditing($event)" ${GENERIC_BINDINGS} ${isAndroid() ? ANDROID_BINDINGS : IOS_BINDINGS}></native-textinput>`
45+
(topBlur)="_handleBlur()" (topEndEditing)="_handleEndEditing($event)" (topContentSizeChange)="_handleContentSizeChange($event)"
46+
${GENERIC_BINDINGS} ${isAndroid() ? ANDROID_BINDINGS : IOS_BINDINGS}></native-textinput>`
4647
})
4748
export class TextInput extends HighLevelComponent implements OnInit {
4849
private _nativeElement: Node;
@@ -79,6 +80,10 @@ export class TextInput extends HighLevelComponent implements OnInit {
7980
* To be documented
8081
*/
8182
@Output() endEditing: EventEmitter<string> = new EventEmitter();
83+
/**
84+
* To be documented
85+
*/
86+
@Output() contentSizeChange: EventEmitter<string> = new EventEmitter();
8287

8388

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

252+
_handleContentSizeChange(event: any) {
253+
this.contentSizeChange.emit(event);
254+
}
255+
247256
//Commands
248257
/**
249258
* To be documented

0 commit comments

Comments
 (0)