react-native-spotlight-guide
Version:
A modern, customizable and high-performance spotlight/walkthrough library for React Native with TypeScript support
58 lines (56 loc) • 1.12 kB
text/typescript
import { StyleSheet } from "react-native";
import { SCREEN } from "../../constants";
export const styles = StyleSheet.create({
childWrapper: {
alignSelf: "flex-start",
},
overlay: {
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
},
contentContainer: {
position: "absolute",
backgroundColor: "white",
padding: 20,
borderRadius: 8,
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 3.84,
elevation: 5,
maxWidth: SCREEN.WIDTH - 40,
},
contentText: {
fontSize: 16,
color: "#333",
marginBottom: 20,
},
buttonContainer: {
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
gap: 10,
paddingHorizontal: 10,
},
button: {
flexBasis: 120,
paddingHorizontal: 20,
paddingVertical: 10,
backgroundColor: "#007AFF",
borderRadius: 8,
alignItems: "center",
justifyContent: "center",
},
buttonText: {
color: "white",
fontSize: 16,
fontWeight: "600",
textAlign: "center",
},
});