2016-06-12 6 views
1

Android 앱 코드를 모두 렌더링하려고하면 아이콘이 제대로 표시되지 않지만 아이콘 교차 표시가 표시됩니다. ``` 'react-native-material-design'에서 툴바 가져 오기 ;ReactNative Android 앱에 아이콘이로드되지 않음

<Toolbar 
    title={navigator && navigator.currentRoute ? navigator.currentRoute.title : 'RunSpace'} 
    icon={navigator && navigator.isChild ? 'keyboard-backspace' : 'menu'} 
    onIconPress={() => navigator && navigator.isChild ? navigator.back() : onIconPress()} 
    actions={[{ 
     icon: 'warning', 
     badge: { value: counter, animate: true }, 
     onPress: this.increment 
    }]} 
    style={{backgroundColor:"#944dff"}} 
    rightIconStyle={{ 
     margin: 10 
    }} 
/> 

종속성 파일은 프로젝트의 기본 모듈을 포함하지 않은이

"dependencies": { 
    "@remobile/react-native-splashscreen": "^1.0.3", 
    "alt": "^0.18.4", 
    "native-base": "^0.3.1", 
    "react": "^0.14.8", 
    "react-native": "^0.25.1", 
    "react-native-action-button": "^1.1.5", 
    "react-native-android-statusbar": "^0.1.2", 
    "react-native-icons": "^0.7.1", 
    "react-native-material-design": "https://github.com/react-native-material-design/react-native-material-design-styles.git", 
    "react-native-material-design-styles": "^0.2.6", 
    "react-native-navigation-bar": "^0.1.10", 
    "react-native-scrollable-tab-view": "^0.4.3", 
    "react-native-vector-icons": "^2.0.3" 
    }, 
+0

당신이 올바르게 재료 설계 라이브러리를 설정 한 사용자의 MainActivity.java 파일에 해당 모듈을 추가 할 필요가 반응 - 네이티브 벡터 아이콘에서 github

에 추가 정보를 참조하지만, to-icon-font 글꼴을 사용할 수 없습니다. 그래서 당신은 수동으로 벡터 아이콘 글꼴 라이브러리를 설치해야합니다. https://github.com/oblador/react-native-vector-icons#android 라이브러리를 설치 한 후이 라이브러리를 재료 디자인 라이브러리에 링크하십시오. 당신은 당신의 결과를 얻을 것이다. –

답변

0

처럼 간다. 이를 위해 아이콘이 때문에 표시되지 않습니다, 당신은