Skip to content

Latest commit

 

History

History
executable file
·
45 lines (38 loc) · 2 KB

faq-4.md

File metadata and controls

executable file
·
45 lines (38 loc) · 2 KB

{{-- react-native-vector-icons peer installation failed --}}

The react-native-vector-icons is always not installed.
I follow up the installation instruction by using rnpm link.
But this doesn't seem to link the package correctly.
Probabilities:
  1. This might be the problem if your rootProject name is not correct at all places.
  2. rnpm link might not work all the time.
    • In case of android
    • If React Native version in your app >= 0.29

        <div style="padding-bottom: 20px;">
            <b>Solution 1:</b> <br />
            Check your rootProject name in react-native-vector-icons's <b><i>font.gradle</i></b>, in case if its hard coded there. This causes failure in linking because the rootProject name may not be same with the definition in <b><i>settings.gradle</i></b>.
        </div>

        <b>Solution 2:</b> <br />
        Please complete the installation procedure for <b>react-native-vector-icons</b> by taking up the 
        <a href="{{ url( 'getting-started#installing-peer-dependencies' ) }}">
            manual setup
        </a> mentioned in the docs.
    </div>
</div>