Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.19 KB

MANUAL_INSTALLATION.md

File metadata and controls

25 lines (20 loc) · 1.19 KB

Manual installation

iOS

React Native official guide

  1. In Xcode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-device-time-format and add RNDeviceTimeFormat.xcodeproj
  3. In Xcode, in the project navigator, select your project. Add libRNDeviceTimeFormat.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import io.sua.RNDeviceTimeFormatPackage; to the imports at the top of the file
  • Add new RNDeviceTimeFormatPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-device-time-format'
    project(':react-native-device-time-format').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-time-format/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      implementation project(':react-native-device-time-format')