(func: Function)
| 173 | } |
| 174 | |
| 175 | export function mainThreadify(func: Function): (...args: any[]) => void { |
| 176 | return function (...args) { |
| 177 | const argsToPass = args; |
| 178 | executeOnMainThread(() => func.apply(this, argsToPass)); |
| 179 | }; |
| 180 | } |
| 181 | |
| 182 | export function isEmoji(value: string): boolean { |
| 183 | // TODO: In a future runtime update, we can switch to using Unicode Property Escapes: |
no test coverage detected