File size: 615 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { ActivityIndicator, View, Dimensions } from 'react-native';
import { connectStateResults } from 'react-instantsearch-native';

const { width, height } = Dimensions.get('window');

export default connectStateResults(({ searching, props }) => {
  const left = props.left ? props.left : 0;
  const bottom = props.bottom ? props.bottom : height - 20;

  return (
    <View
      style={{
        position: 'absolute',
        left: width - left,
        bottom: height - bottom,
        zIndex: 2,
      }}
    >
      <ActivityIndicator animating={searching} />
    </View>
  );
});