Commit 3461c72d authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

done color part

parent 134cf0e8
......@@ -4,3 +4,4 @@ import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
\ No newline at end of file
......@@ -2,6 +2,7 @@ import { useNavigation } from "@react-navigation/native";
import React from "react";
import {Text, TouchableOpacity, StyleSheet, View, Image} from 'react-native'
export default function ColorActivity(props){
const {title, image, id, color, des} = props;
......
......@@ -56,8 +56,8 @@ export default function Color(){
</View>
</View>
{datas.map((data) =>{
return(<ColorActivity title={data.name} image={data.image} id={data.idcolorActivities} des={data.des} color={data.color}/>)
{datas.map((data, index) =>{
return(<ColorActivity key={index} title={data.name} image={data.image} id={data.idcolorActivities} des={data.des} color={data.color}/>)
})}
</ScrollView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment