How to use the react-native-openalpr.Aspect.stretch function in react-native-openalpr

To help you get started, we’ve selected a few react-native-openalpr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RobertSasak / react-native-openalpr / example / App.js View on Github external
))}
    
  
)

const colorOptions = [
  { label: 'Red', value: '#ff0000' },
  { label: 'Green', value: '#00ff00' },
  { label: 'Blue', value: '#0000ff' },
]

const aspectOptions = [
  { label: 'Fill', value: Aspect.fill },
  { label: 'Fit', value: Aspect.fit },
  { label: 'Stretch', value: Aspect.stretch },
]

const qualityOptions = [
  { label: 'Low', value: CaptureQuality.low },
  { label: 'Medium', value: CaptureQuality.medium },
  { label: 'High', value: CaptureQuality.high },
]

const countryOptions = [
  { label: 'eu', value: 'eu' },
  { label: 'us', value: 'us' },
]

export default class App extends Component {
  state = {
    showOptions: false,