React:Cross-Platform Application Development with React Native
上QQ阅读APP看书,第一时间看更新

Assessments

  1. Why does the react-native-geocoder module uses Google Maps reverse geocoding services?
    1. To store a human-readable position for the location in which the map is centred
    2. To translate some coordinates into a human-readable location
    3. To add an API key in order to authenticate our app with the service
    4. To ensure the name of the location is recalculated every time the map is moved to show a different region
  2. Which of the following properties is used for aligning elements?
    1. justifyContent
    2. alignLeft
    3. alignRight
    4. alignJustify
  3. By default, React Native and Flexbox stack elements ________.
    1. Diagonally
    2. Reverse
    3. Vertically
    4. Horizontally
  4. Which of the following lines of code extracts the height and the width from a device into two variables?
    1. const {height, width} = Dimensions.get('height, width');
    2. constant {height, width} = Dimensions.get('window');
    3. const {height, width} = get('window');
    4. const {height, width} = Dimensions.get('window');
  5. Which are the four properties in order to add a shadow to a component?