i18n android integration, TODO iOS

This commit is contained in:
Jarrad Hope 2016-02-23 23:15:51 +01:00
parent ae2e0b27cc
commit f4af8beb15
3 changed files with 9 additions and 2 deletions

View File

@ -123,5 +123,6 @@ dependencies {
compile "com.android.support:appcompat-v7:23.0.1" compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:0.20.+" compile "com.facebook.react:react-native:0.20.+"
compile project(':react-native-contacts') compile project(':react-native-contacts')
compile project(':react-native-i18n')
compile(name:'geth', ext:'aar') compile(name:'geth', ext:'aar')
} }

View File

@ -11,6 +11,8 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;
import com.i18n.reactnativei18n.ReactNativeI18n;
public class MainActivity extends ReactActivity { public class MainActivity extends ReactActivity {
@ -61,7 +63,8 @@ public class MainActivity extends ReactActivity {
protected List<ReactPackage> getPackages() { protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList( return Arrays.<ReactPackage>asList(
new MainReactPackage(), new MainReactPackage(),
new ReactNativeContacts() new ReactNativeContacts(),
new ReactNativeI18n()
); );
} }
} }

View File

@ -3,4 +3,7 @@ rootProject.name = 'Messenger'
include ':app' include ':app'
include ':react-native-contacts' include ':react-native-contacts'
project(':react-native-contacts').projectDir = new File(settingsDir, '../node_modules/react-native-contacts/android') 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')