/
githubmirror
/
styled-components
Обзор
Документация
Войти
/
githubmirror
/
styled-components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/ios-benchmark/src/impl.ts
20 строк
774 B
Evan Jacobs
chore(bench): sandbox, headless benches, native-showcase, ios-benchmark
11 май 2026, 10:37
11 май 2026, 10:37
062ec8b
Код
Авторство
О чём код?
import vanilla from './implementations/vanilla-stylesheet'; import v7 from './implementations/styled-components-native'; import v6 from './implementations/styled-components-native-v6'; import type { BenchComponents } from './cases/types'; export interface Implementation { name: string; components: BenchComponents; } // vanilla-stylesheet is the baseline — raw RN <View> + StyleSheet.create. It's // the floor SC layers on top of, so the v7/v6 deltas vs vanilla show the // styled-components tax in absolute terms. const implementations: Implementation[] = [ { name: 'vanilla-stylesheet', components: vanilla }, { name: 'styled-components-native', components: v7 }, { name: 'styled-components-native-v6', components: v6 }, ]; export default implementations;