(examples: any)
| 113 | } |
| 114 | |
| 115 | renderExamples(examples: any) { |
| 116 | const {Component, useGoogleMaps} = this.state; |
| 117 | |
| 118 | return ( |
| 119 | <View style={styles.container}> |
| 120 | {Component && ( |
| 121 | <Component |
| 122 | provider={useGoogleMaps ? PROVIDER_GOOGLE : PROVIDER_DEFAULT} |
| 123 | /> |
| 124 | )} |
| 125 | {Component && this.renderBackButton()} |
| 126 | {!Component && ( |
| 127 | <ScrollView |
| 128 | style={StyleSheet.absoluteFill} |
| 129 | contentContainerStyle={styles.scrollview} |
| 130 | showsVerticalScrollIndicator={false}> |
| 131 | {IOS && this.renderGoogleSwitch()} |
| 132 | {examples.map((example: any) => this.renderExample(example))} |
| 133 | </ScrollView> |
| 134 | )} |
| 135 | </View> |
| 136 | ); |
| 137 | } |
| 138 | |
| 139 | render() { |
| 140 | return this.renderExamples( |
no test coverage detected