react-native-overlay-view
Version:
17 lines (15 loc) • 459 B
JavaScript
import React, { Component } from 'react'
import { AppRegistry, ActivityIndicator, View, Text } from 'react-native'
import Overlay from 'react-native-overlay-view'
const App = (props) => (
<View style={{
flex: 1,
backgroundColor: 'red',
justifyContent: 'center'
}}>
<Overlay onPress={() => alert('Pressed')}>
<ActivityIndicator size='large' animating />
</Overlay>
</View>
)
AppRegistry.registerComponent('example', () => App)