react native ribbon
import React, {useEffect, useState, useRef} from 'react';
import {
Text,
View,
Dimensions,
Image,
Animated,
StyleSheet,
} from 'react-native';
export default function BadgeRibbon(props) {
return (
<View>
<View
style={{
width: 120,
padding: 10,
paddingLeft: 20,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#1CCD75',
height: 40,
borderTopRightRadius: 3,
borderBottomRightRadius: 3,
}}>
<Text style={{color: '#FFF', fontWeight: 'bold'}}>{props.text}</Text>
</View>
<View
style={{
width: 0,
height: 0,
backgroundColor: 'transparent',
borderStyle: 'solid',
borderRightWidth: 20,
borderTopWidth: 20,
borderRightColor: 'transparent',
borderTopColor: '#232F3B',
transform: [{rotate: '90deg'}],
}}
/>
</View>
);
}
Also in JavaScript:
- node js ffmpeg image to video
- count the number of spacesinto a string javascript
- get form data as object jquery
- jquery continue in loop each
- json to ms access table
- check if even or odd javascript
- type numeric value only in textbox javascript
- capitalize in javascript
- js canvas pixel art
- george will turn g years old in year k
- "Given a array of numbers representing the stock prices of a company in chronological order, write a function that calculates the maximum profit you could have made from buying and selling that stock once. You must buy before you can sell it"
- ejs partial pass value
- ionic ngfor in component
- javascript lowercase string
- chart js radar grid color
- import input text material ui
- 'React' must be in scope when using JSX react/react-in-jsx-scope
- how to remove middle characters in string javascript
- jquery display none
- how to copy text in the clipboard in js
- angularjs socket.io
- geojson longitude latitude order
- Generate random whole numbers javascript
- mongodb find all that dont have property