Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.39 KB

0.26.md

File metadata and controls

48 lines (33 loc) · 1.39 KB

Upgrade 0.25 to 0.26

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

BREAKING CHANGES

$UI.shadows

  • Format of specifying shadows has changed. Instead of RN-type of shadows configuration, it now uses CSS shadows:

    // BEFORE:
    '1': {
      shadowColor: '#000',
      shadowOffset: {
        width: 0,
        height: 1
      },
      shadowOpacity: 0.2,
      shadowRadius: 2.22,
      elevation: 3
    }
    
    // AFTER:
    '1': {
      box-shadow: 0 1px 2px rgba(black, 0.2)
      elevation: 3
    },

    If you did override default UI configuration for shadows ($UI.shadows variable), you'll have to update it to new format.

Popover

  • rename prop styleWrapper to wrapperStyle

Dropdown

  • rename prop popoverStyleWrapper to popoverWrapperStyle

react-native-web

  • react-native-web version is now managed internally by startupjs package itself. Remove react-native-web from package.json of your project.

Automatic fonts

  • Create a folder public/fonts, add an empty .gitignore file to it. You'll be able to add font files to this folder and they will be automatically plugged in your web and native, with the name of the font file used for the font-family name.

For full list of new features and bug fixes see CHANGELOG