react-native-android-kit icon indicating copy to clipboard operation
react-native-android-kit copied to clipboard

Can't add property 4, object is not extensible

Open kiwijus opened this issue 9 years ago • 0 comments

I get the following error when using TabLayoutAndroid and React-native navigator. The error occurs when I try to push to another route. I have the following code:


<View>
              <ButtonAndroid
                text='Custom Button'
                onPress={

                  () => {
                      this.props.navigator.push(anotherRoute());
                  }
                }
                />
        </View>
        <View style={{ flex: 1 }}>
          <TabLayoutAndroid style={{ height: 40 }} backgroundColor='#F9F9F9' indicatorTabColor='#000000'
            indicatorTabHeight={2} scrollable={true} center={false} >
            <TabAndroid text='All' textSize={14} textColor="#000000" selectedTextColor='#000000'
              icon='ic_home_black_24dp' scrollEnabled={false} iconPosition='left'>
              <Text>I'm the firstTab content!</Text>
            </TabAndroid>
            <TabAndroid text='Online' textSize={14} textColor="#000000" selectedTextColor='#000000'
              icon='ic_important_devices_black_24dp' scrollEnabled={false}  iconPosition='left'>
              <Text>I'm the second Tab content!</Text>
            </TabAndroid>
            <TabAndroid text='Pending' textSize={14} textColor="#000000" selectedTextColor='#000000'
              icon='ic_important_devices_black_24dp' iconPosition='left'>
              <Text>I'm the third Tab content!</Text>
            </TabAndroid>
            <TabAndroid text='Blocked' textSize={14} textColor="#000000" selectedTextColor='#000000'
              icon='ic_important_devices_black_24dp' iconPosition='left'>
              <Text>I'm the third Tab content!</Text>
            </TabAndroid>
          </TabLayoutAndroid>

        </View>

kiwijus avatar Oct 12 '16 20:10 kiwijus