Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RN improved the typing of StyleSheet in 0.73 (facebook/react-native@b0a9053) by removing the possibility of typos/invalid keys. It looks like dark never really accounted for that, so using dark on 0.73 causes TS squigglies due to the fact that `dark` is not a valid propery key for any styles! Somewhere along the way too, it did widen some types from being 'flex-start' to 'string' which also caused errors. This simplifies (and hopefully doesn't break?) the shim, by mostly just lifting the new TS definition inside RN, and applying the `AddDark` type. I tested this on `vnxl` after upgrading the example app to 0.73 and by patching packages. Update shim.d.ts
- Loading branch information