我使用的是react-native和native-base主题。现在我想使用react-native-share包。但是我需要从两个包中使用Button,但是我得到了重复的标识符错误。
import Share, { ShareSheet, Button } from 'react-native-share';
import { Button } from 'native-base';我可以从react-native-share中声明另一个按钮吗?
发布于 2017-04-28 20:32:36
请试着使用:
Import { Button as Btn } from 'native-base'这应该能解决你的问题。
https://stackoverflow.com/questions/43688361
复制相似问题