iRo*_*tia 1 reactjs react-native
我想导入两个具有相同名称的模块,即
import {Input, Icon} from 'native-base'
Run Code Online (Sandbox Code Playgroud)
和
import {Input, Button} from 'react-native-elements'
Run Code Online (Sandbox Code Playgroud)
如何在JSX中导入和使用它们两者?可能吗?
as导入时可以使用
import {Input as InputBase, Icon} from 'native-base'
import {Input, Button} from 'react-native-elements'Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
64 次 |
| 最近记录: |