Upgrade 0.33 to 0.34

Change startupjs and all @startupjs/* dependencies in your package.json to ^0.34.

BREAKING CHANGES

startupjs/ui/Avatar

  • the size property no longer supported xs, xl, xxl values, pass number value instead

startupjs/ui/Button

  • the variant property no longer supported shadowed value

startupjs/ui/Div

  • no longer supports web only onClick property, use onPress instead

startupjs/ui/PasswordInput

  • no longer supports property secureTextEntry

startupjs/ui/Tabs

  • now requires react-native-pager-view. Run the following
  yarn add react-native-pager-view

IMPORTANT!!! Do the following steps only if react-native-gesture-handler and react-native-reanimated are not used by other components

  • no longer requires react-native-gesture-handler and react-native-reanimated packages. You can remove them from your package.json

  • remove react-native-gesture-handler link for android. For it do next steps

Open /android/app/src/main/java/com/YOUR_PROJECT_NAME/MainActivity.java. Remove from it this strings:

  import com.facebook.react.ReactActivityDelegate;
  import com.facebook.react.ReactRootView;
  import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;

and this:

@Override
protected ReactActivityDelegate createReactActivityDelegate() {
  return new ReactActivityDelegate(this, getMainComponentName()) {
    @Override
    protected ReactRootView createRootView() {
      return new RNGestureHandlerEnabledRootView(MainActivity.this);
    }
  };
}

You can see all changes here.

startupjs/ui/Tag

  • remove iconPosition property. For the icon on the left, use the icon property and iconStyle to style it, for the icon on the right, use the secondaryIcon and secondaryIconStyle properties, and all these properties to use two icons

  • no more support loading indicator for async action

  • the default component size has become larger

  • add size property

startupjs/auth

  • remove AuthModal component, use Modal + AuthForm locally on your project