📌  相关文章
📜  npm react native 轮流导航 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:49.748000             🧑  作者: Mango

代码示例1
import { OpenMapDirections } from 'react-native-navigation-directions';

export default class App extends React.Component {
 _callShowDirections = () => {
    const startPoint = {
      longitude: -8.945406,
      latitude: 38.575078
    } 

    const endPoint = {
      longitude: -8.9454275,
      latitude: 38.5722429
    }

        const transportPlan = 'w';

    OpenMapDirections(startPoint, endPoint, transportPlan).then(res => {
      console.log(res)
    });
  }
  
  render() {
    return (
      
        Show direction between two random points!