Skip to content

Instantly share code, notes, and snippets.

@Pasi-D
Created April 27, 2021 17:57
Show Gist options
  • Save Pasi-D/5965dc8ad49d991a226be37946fd111d to your computer and use it in GitHub Desktop.
Save Pasi-D/5965dc8ad49d991a226be37946fd111d to your computer and use it in GitHub Desktop.
Medium Demo - Custom Style file for react native styling
import { StyleSheet } from "react-native";
import { Theme } from "themes";
const styles = (theme: Theme) =>
StyleSheet.create({
spinnerContainer: {
flex: 1,
alignItems: "center",
justifyContent: "center",
color: theme.colors?.primary,
},
});
export default styles;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment