diff --git a/android/app/build.gradle b/android/app/build.gradle index f27de08265..fd8cf52214 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -123,5 +123,6 @@ dependencies { compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:0.20.+" compile project(':react-native-contacts') + compile project(':react-native-i18n') compile(name:'geth', ext:'aar') } diff --git a/android/app/src/main/java/com/messenger/MainActivity.java b/android/app/src/main/java/com/messenger/MainActivity.java index 67627a322f..a205411a60 100644 --- a/android/app/src/main/java/com/messenger/MainActivity.java +++ b/android/app/src/main/java/com/messenger/MainActivity.java @@ -11,6 +11,8 @@ import java.util.Arrays; import java.util.List; import java.util.Properties; +import com.i18n.reactnativei18n.ReactNativeI18n; + public class MainActivity extends ReactActivity { @@ -61,7 +63,8 @@ public class MainActivity extends ReactActivity { protected List getPackages() { return Arrays.asList( new MainReactPackage(), - new ReactNativeContacts() + new ReactNativeContacts(), + new ReactNativeI18n() ); } } diff --git a/android/settings.gradle b/android/settings.gradle index 923e376539..adae6376d7 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -3,4 +3,7 @@ rootProject.name = 'Messenger' include ':app' include ':react-native-contacts' -project(':react-native-contacts').projectDir = new File(settingsDir, '../node_modules/react-native-contacts/android') \ No newline at end of file +project(':react-native-contacts').projectDir = new File(settingsDir, '../node_modules/react-native-contacts/android') + +include ':react-native-i18n' +project(':react-native-i18n').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-i18n/android') \ No newline at end of file