mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +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.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class RNScreenPackage implements ReactPackage {
|
public class RNScreensPackage implements ReactPackage {
|
||||||
@Override
|
@Override
|
||||||
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
@@ -42,7 +42,7 @@ public class ScreenContainer extends ViewGroup {
|
|||||||
mFragmentManager = ((FragmentActivity) activity).getSupportFragmentManager();
|
mFragmentManager = ((FragmentActivity) activity).getSupportFragmentManager();
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalStateException(
|
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
|
@Override
|
||||||
public void addView(ScreenContainer parent, View child, int index) {
|
public void addView(ScreenContainer parent, View child, int index) {
|
||||||
if (!(child instanceof Screen)) {
|
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);
|
parent.addScreen((Screen) child, index);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user