2.19.0 • Published 5 months ago

pebble-shared v2.19.0

Weekly downloads
21
License
MIT
Repository
-
Last release
5 months ago

pebble-shared

A set of utilities and icons shared between pebble-native and pebble-web.

Install

yarn add pebble-shared

Using icons in React Native

Add the following in your package.json;

"rnpm": {
    "assets": {
        "./node_modules/pebble-shared/native/icons"
    }
}

Then run react-native link. and then it can be used by importing the Icon component.

import { Icon } from "@anarock/pebble/native";

// Usage
<Icon name="iconName" size={20} color="#000000" />;

Using in Expo

In your entry file App.js

export default class App extends Component {
  state = {
    fontsLoaded: false
  };

  async componentDidMount() {
    await Font.loadAsync({
      pebble: require("./node_modules/pebble-shared/native/icons/pebble.ttf")
    });

    this.setState({
      fontsLoaded: true
    });
  }

  render() {
    return this.state.fontsLoaded && <Main />;
  }
}

Acknowledgements

We use Chromaticqa for visual regression testing and it is awesome.

License

MIT

Add Icons from Figma

  • Add Material Design plugin to your Figma file.
  • Create a 1000 x 1000 frame with the fill turned off.
  • Insert desired icon from the plugin into the frame and set its longest dimension to 1000 with constraint proportions on.
  • Center align the vector with the frame and export the frame as svg.
2.18.0-alpha.0

7 months ago

2.19.0

5 months ago

2.18.0

5 months ago

2.17.0

8 months ago

2.16.0

9 months ago

2.15.0

12 months ago

2.11.0

2 years ago

2.12.0

2 years ago

2.11.1

2 years ago

2.14.1

2 years ago

2.13.0

2 years ago

2.14.0

2 years ago

2.10.1

2 years ago

2.10.0

2 years ago

2.4.1

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.7.0

2 years ago

2.4.2

2 years ago

2.6.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.9.2

2 years ago

2.9.1

2 years ago

2.9.3

2 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.9

3 years ago

2.2.7

4 years ago

2.2.5

4 years ago

2.2.6

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.2.0-alpha.2

5 years ago

2.2.0-alpha.1

5 years ago

2.2.0-alpha.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-alpha.1

6 years ago

2.0.0-alpha.0

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago