1import * as Maps from 'expo-maps'; 2import React from 'react'; 3import { StyleSheet, View } from 'react-native'; 4 5export default function GoogleMapsStylingExample() { 6 return ( 7 <View style={styles.container}> 8 <Maps.ExpoMap 9 style={{ flex: 1, width: '100%' }} 10 provider="google" 11 googleMapsJsonStyleString={JSON.stringify( 12 require('../../../../assets/expo-maps/exampleMapStyle.json') 13 )} 14 /> 15 </View> 16 ); 17} 18 19const styles = StyleSheet.create({ 20 container: { 21 flex: 1, 22 }, 23}); 24