fix(react): IonRouterOutlet now respects animated={false} prop (#22905)

resolves #22903
This commit is contained in:
Liam DeBeasi
2021-02-10 15:05:04 -05:00
committed by GitHub
parent 3a0465e7d6
commit da1b7a0e7a

View File

@ -73,7 +73,7 @@ export const createReactComponent = <PropType, ElementType>(
if (isCoveredByReact(eventName)) {
(acc as any)[name] = (cProps as any)[name];
}
} else if (typeof (cProps as any)[name] === 'string') {
} else if (['string', 'boolean', 'number'].includes(typeof (cProps as any)[name])) {
(acc as any)[camelToDashCase(name)] = (cProps as any)[name];
}
return acc;