File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -406,21 +406,20 @@ export function commitUpdate(
406
406
instance . _applyProps ( instance , newProps , oldProps ) ;
407
407
}
408
408
409
- export function hideInstance ( instance : Instance ) : void {
410
- throw new Error ( 'Not yet implemented.' ) ;
409
+ export function hideInstance ( instance ) {
410
+ instance . hide ( ) ;
411
411
}
412
412
413
- export function hideTextInstance ( textInstance : TextInstance ) : void {
414
- throw new Error ( 'Not yet implemented.' ) ;
413
+ export function hideTextInstance ( textInstance ) {
414
+ // Noop
415
415
}
416
416
417
- export function unhideInstance ( instance : Instance , props : Props ) : void {
418
- throw new Error ( 'Not yet implemented.' ) ;
417
+ export function unhideInstance ( instance , props ) {
418
+ if ( props . visible == null || props . visible ) {
419
+ instance . show ( ) ;
420
+ }
419
421
}
420
422
421
- export function unhideTextInstance (
422
- textInstance : TextInstance ,
423
- text : string ,
424
- ) : void {
425
- throw new Error ( 'Not yet implemented.' ) ;
423
+ export function unhideTextInstance ( textInstance , text ) : void {
424
+ // Noop
426
425
}
You can’t perform that action at this time.
0 commit comments