UNPKG

advanced-games-library

Version:

Advanced Gaming Library for React Native - Four Complete Games with iOS Compatibility Fixes

44 lines (40 loc) 759 B
/** * GameContainer - JavaScript Fallback Version * A container component for wrapping game content * * @version 1.0.0 * @author Games Studio */ const React = require('react'); const { View, StyleSheet } = require('react-native'); const GameContainer = ({ children, style, padding = 20, borderRadius = 10, backgroundColor = '#f8f9fa', ...props }) => { return ( <View style={[ styles.container, { padding, borderRadius, backgroundColor, }, style, ]} {...props} > {children} </View> ); }; const styles = StyleSheet.create({ container: { flex: 1, }, }); module.exports = GameContainer;