File tree Expand file tree Collapse file tree
packages/uniwind/src/components/web Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Animated as RNAnimated } from 'react-native'
2+ import { FlatList } from './FlatList'
3+ import { Image } from './Image'
4+ import { ScrollView } from './ScrollView'
5+ import { SectionList } from './SectionList'
6+ import { Text } from './Text'
7+ import { View } from './View'
8+
9+ // source: https://github.com/necolas/react-native-web/tree/master/packages/react-native-web/src/vendor/react-native/Animated/components
10+
11+ export const Animated = {
12+ ...RNAnimated ,
13+ FlatList : RNAnimated . createAnimatedComponent ( ( props ) => < FlatList scrollEventThrottle = { 0.0001 } { ...props } /> ) ,
14+ ScrollView : RNAnimated . createAnimatedComponent ( ( props ) => < ScrollView scrollEventThrottle = { 0.0001 } { ...props } /> ) ,
15+ SectionList : RNAnimated . createAnimatedComponent ( ( props ) => < SectionList scrollEventThrottle = { 0.0001 } { ...props } /> ) ,
16+ Image : RNAnimated . createAnimatedComponent ( Image ) ,
17+ Text : RNAnimated . createAnimatedComponent ( Text ) ,
18+ View : RNAnimated . createAnimatedComponent ( View ) ,
19+ }
Original file line number Diff line number Diff line change 11export * from 'react-native'
22export { ActivityIndicator } from './ActivityIndicator'
3+ export { Animated } from './Animated'
34export { Button } from './Button'
45export { FlatList } from './FlatList'
56export { Image } from './Image'
You can’t perform that action at this time.
0 commit comments