We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9864fb9 commit 49b2b4eCopy full SHA for 49b2b4e
packages/runtime/src/runtimeHelpers.ts
@@ -1,17 +1,8 @@
1
export const ELEMENT_REF = Symbol(__DEV__ ? `elementRef` : ``)
2
3
-export const isAndroidKey = (key: string) =>
4
- key[0] === 'a' &&
5
- key[1] === 'n' &&
6
- key[2] === 'd' &&
7
- key[3] === 'r' &&
8
- key[4] === 'o' &&
9
- key[5] === 'i' &&
10
- key[6] === 'd' &&
11
- key[7] === ':'
+export const isAndroidKey = (key: string) => key.startsWith('android:')
12
13
-export const isIOSKey = (key: string) =>
14
- key[0] === 'i' && key[1] === 'o' && key[2] === 's' && key[3] === ':'
+export const isIOSKey = (key: string) => key.startsWith('ios:')
15
16
export const isBoolean = (value: unknown): boolean => {
17
return typeof value === 'boolean' || value instanceof Boolean
0 commit comments