stopSurface

open fun stopSurface(surfaceHandler: SurfaceHandler)


open fun stopSurface(surfaceID: Int)

Stop a surface from running in JS and clears up native memory usage. Assumes that the native View hierarchy has already been cleaned up. Fabric-only.