17 lines
419 B
TypeScript
17 lines
419 B
TypeScript
import React from 'react'
|
|
import {View, ActivityIndicator, StyleSheet} from 'react-native'
|
|
import {register} from 'react-native-bundle-splitter'
|
|
|
|
export const ViewSelector = register({
|
|
loader: () => import('./ViewSelector'),
|
|
placeholder: () => (
|
|
<View style={styles.loading}>
|
|
<ActivityIndicator />
|
|
</View>
|
|
),
|
|
})
|
|
|
|
const styles = StyleSheet.create({
|
|
loading: {flex: 1, justifyContent: 'center'},
|
|
})
|