Change startupjs
and all @startupjs/*
dependencies in your package.json
to ^0.26
.
-
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.
- rename prop
styleWrapper
towrapperStyle
- rename prop
popoverStyleWrapper
topopoverWrapperStyle
react-native-web
version is now managed internally bystartupjs
package itself. Removereact-native-web
frompackage.json
of your project.
- 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 thefont-family
name.