fiber-react-native-elevated-view
Supercharge your Views with cross-platform elevation tricks!
yarn add fiber-react-native-elevated-view
API
type Props = feedbackEnabled: boolean activeElevation?: number elevation?: number elevationColor?: string children?: Array<mixed> style?: any onPress?: any onLongPress?: any;
Example
/** * @flow */ ;;; state = count: 0 ; { return <View style=stylescontainer> <ElevatedView style= backgroundColor: "#30C1DD" padding: 16 borderRadius: 4 elevation=10 elevationColor="#00A4D3" feedbackEnabled activeElevation=1 onPress= this > <Text style=styleswelcome> Welcome to React Native! </Text> <Text style=stylesinstructions> To get started edit indexiosjs </Text> <Text style=stylesinstructions> Press Cmd+R to relthisstatecountad"\n" Cmd+D or shake for dev menu </Text> </ElevatedView> </View> ; } const styles = StyleSheet;