Location with Latitude and Longitude

Last Updated on : 2021-08-27 11:07:50download

LocationText

Preview

Location with Latitude and Longitude

Properties

Field name Type Description Default value
localTextStyle StyleProp<TextStyle> The text style. null
lonlat Object The longitude and latitude. {longitude: number; latitude: number}
textProps Object Other text parameters. numberOfLines: 2

Example

import React from 'react'
import { LocationText } from '@tuya/tuya-panel-outdoor-sdk'

const LocationTextView = () => {
  const lonlat = {
    longitude: 121.492951,
    latitude: 31.22337,
  };
  return <LocationText lonlat={lonlat} />;
}