Rename RNScreen to RNScreens to stay consistent (#27)

This commit is contained in:
Thibault Malbranche
2018-10-08 09:06:12 +02:00
committed by Krzysztof Magiera
parent 6291a98bbc
commit 0daa7e2ef7
3 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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");
}
}

View File

@@ -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);
}