Closed vcooley closed 7 years ago
Good question @vcooley. The raw typings that @EddyVerbruggen is exposing in #20 might help implement those APIs more sanely.
@tjvantoll there is a way using a custom view they provided
{N} v2
declare const IQPreviousNextView;
import { ContentView } from "ui/content-view";
export class IQPreviousNextViewImpl extends ContentView {
private _ios: IQPreviousNextView;
get ios() {
return this.ios;
}
get _nativeView() {
return this._ios;
}
constructor() {
super();
this._ios = IQPreviousNextView.new();
}
}
{N} v3
import { ContentView } from "ui/content-view";
declare const IQPreviousNextView;
export class IQPreviousNextViewImpl extends ContentView {
private _ios;
get ios() {
return this.ios;
}
constructor() {
super();
this._ios = IQPreviousNextView.new();
}
createNativeView() {
return this._ios;
}
}
I just got to look at this. It works great! Thanks @triniwiz!
Does anyone have guidance on using this with TextFields which are not direct siblings? In the official documentation I found this.
However, I am not sure what I should pass in to the part that is
SpecialView.self
. I'm trying to use this to group input fields together, while allowing them to be minimized. Currently my setup looks something like this (simplified):Thanks.