'implement tooth chart in react native
Solution 1:[1]
There are couple of ways you can do this.
One of the options is to create a component for the tooth chart. toothChart.js Then it the component you are going to return a 16 x 16 grid using two loops one for the horizontalAxis and one for the verticalAxis.
const verticalAxis-["1", 2", "3", "4", 6", "7", "8"..., "16"];
const horizontalAxis-["a", "b",e, "d", "f", "8", "h" ....];
export default function toothChart()
let board-[]:
for (let j- verticalaxis.length-1;j>- 0; j--){
for (leti-e; ic horizontalAxis.length; i++){
board.push(
<View style={styles.tile>[{horizontalAxis[1]}{verticalAxis[]}]</View>
);
return <View style={styles.toothChartBoard} >{board}</div>;
Then within the boards you can add svg/image of the individual tooth. I hope this helps.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | questerstudios |


