Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Manual Installation

Alberto Martínez edited this pageJan 10, 2019 ·3 revisions

iOS

  1. In XCode, in the project navigator, right clickLibrariesAdd Files to [your project's name]
  2. Go tonode_modulesreact-native-text-size and addRNTextSize.xcodeproj
  3. In XCode, in the project navigator, select your project. AddlibRNTextSize.a to your project'sBuild PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)

Android

  1. Open upandroid/app/src/main/java/[...]/MainApplication.java

    • Addimport com.github.amarcruz.rntextsize.RNTextSizePackage; to the imports at the top of the file
    • Addnew RNTextSizePackage() to the list returned by thegetPackages() method
  2. Append the following lines toandroid/settings.gradle:

    include':react-native-text-size'project(':react-native-text-size').projectDir=newFile(rootProject.projectDir,'../node_modules/react-native-text-size/android')
  3. Insert the following lines inside the dependencies block inandroid/app/build.gradle:

    compile project(':react-native-text-size')

If you are using the Gradle plugin 3 or later (default in RN 0.57), in step 3 change thecompile directive toimplementation.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp