i18n android integration, TODO iOS
This commit is contained in:
parent
ae2e0b27cc
commit
f4af8beb15
|
@ -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')
|
||||
}
|
||||
|
|
|
@ -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<ReactPackage> getPackages() {
|
||||
return Arrays.<ReactPackage>asList(
|
||||
new MainReactPackage(),
|
||||
new ReactNativeContacts()
|
||||
new ReactNativeContacts(),
|
||||
new ReactNativeI18n()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
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')
|
Loading…
Reference in New Issue