mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 22:51:57 +08:00
Rename RNScreen to RNScreens to stay consistent (#27)
This commit is contained in:
committed by
Krzysztof Magiera
parent
6291a98bbc
commit
0daa7e2ef7
@@ -9,7 +9,7 @@ import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class RNScreenPackage implements ReactPackage {
|
||||
public class RNScreensPackage implements ReactPackage {
|
||||
@Override
|
||||
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
||||
return Collections.emptyList();
|
||||
@@ -42,7 +42,7 @@ public class ScreenContainer extends ViewGroup {
|
||||
mFragmentManager = ((FragmentActivity) activity).getSupportFragmentManager();
|
||||
} else {
|
||||
throw new IllegalStateException(
|
||||
"In order to use RNScreen components your app's activity need to extend ReactFragmentActivity or ReactCompatActivity");
|
||||
"In order to use RNScreens components your app's activity need to extend ReactFragmentActivity or ReactCompatActivity");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ public class ScreenContainerViewManager extends ViewGroupManager<ScreenContainer
|
||||
@Override
|
||||
public void addView(ScreenContainer parent, View child, int index) {
|
||||
if (!(child instanceof Screen)) {
|
||||
throw new IllegalArgumentException("Attempt attach child that is not of type RNScreen");
|
||||
throw new IllegalArgumentException("Attempt attach child that is not of type RNScreens");
|
||||
}
|
||||
parent.addScreen((Screen) child, index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user