JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;
- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;
| --- | |
| format_version: 1.1.0 | |
| default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
| trigger_map: | |
| - push_branch: "*" | |
| workflow: tests | |
| workflows: | |
| _tests_setup: | |
| steps: | |
| - activate-ssh-key: {} |
| import React from 'react'; | |
| import { | |
| StyleSheet, | |
| View, | |
| TextInput, | |
| AppRegistry, | |
| } from 'react-native'; | |
| class App extends React.Component { | |
| constructor(props) { |
JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;
- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;
| import React from 'react' | |
| import styled from 'styled-components' | |
| class ScrollingWrapper extends React.Component { | |
| state = { hasScrolled: false } | |
| componentDidMount() { | |
| this.scrollingWrapper.addEventListener('scroll', this.onScroll) | |
| } |