@marketicons/bist-react-native
v0.1.0
Published
BIST (Borsa Istanbul) company logos as React Native components
Readme
@marketicons/bist-react-native
BIST (Borsa Istanbul) company logos as React Native components.
Installation
# npm
npm install @marketicons/bist-react-native react-native-svg
# yarn
yarn add @marketicons/bist-react-native react-native-svg
# pnpm
pnpm add @marketicons/bist-react-native react-native-svgNote: This package requires
react-native-svgas a peer dependency.
For iOS, you need to install pods:
cd ios && pod install && cd ..Usage
import { BistIcon } from "@marketicons/bist-react-native";
function App() {
return (
<View>
<BistIcon name="THYAO" size={32} />
<BistIcon name="GARAN" size={48} style={{ marginBottom: 8 }} />
</View>
);
}Props
| Prop | Type | Default | Description | | ----- | --------- | ------- | ---------------------------------------- | | name | string | - | BIST company code (e.g., "THYAO") | | size | number | 24 | Icon size in pixels | | style | ViewStyle | - | Additional styles for the icon container |
License
MIT © Codixus
