Skip to content

New erevator#109

Open
yamato3310 wants to merge 17 commits into
masterfrom
new_erevator
Open

New erevator#109
yamato3310 wants to merge 17 commits into
masterfrom
new_erevator

Conversation

@yamato3310
Copy link
Copy Markdown
Contributor

css汚い気がしますが見た目はだいたいあっています

やったこと

  • 右上の動画とエレベーター一覧ボタンの設置
  • ヘッダーの設置(横浜駅は直接入れている)
  • エレベーター一覧画面の制作

<View style={styles.container} >
<Image
source={require('../../../assets/images/elevator_setting_big.png')}
style={styles.leftContainer}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

containerって名前なのに中に何持ってないのかw

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

どういう意味です?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

containerというクラス名だとその中に
なにかしらの要素を含んでいるような気がした。

という意味ですね

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あれ要素とは?
今入っているとかとは別のものですか?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftContainer
の中って何もなさそうって話ですね!

alignItems: 'center',
marginTop: 20,
marginTop: height * 0.01,
justifyContent: 'center',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ、8+で最適化してるけどいっちーの端末とかでも確認できてる??

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

壱の端末ではガッツリ死んでいます

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iphoneXの対応はしてないので動作保証外ですねw

Comment thread src/components/elevatorComponent/ElevatorList.tsx Outdated
elevatorObjectPoints: ObjectPoint[];
startGate: Gate;
endGate:Gate;
elevatorListChangeFlg: () => void;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flgって名前だとどちらかというとboolを想定しそうですねぇ…

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guide Screenも同じで!

Comment thread src/components/elevatorComponent/ElevatorList.tsx Outdated
Comment thread src/screens/ElevatorScreen.tsx Outdated
elevator: undefined,
};

async componentDidMount () {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public抜けてる

Comment thread src/screens/GuideScreen.tsx Outdated

private indoorChanges = (items: any) => {
if (items == undefined) return;
if (!Array.isArray(items)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

意図が不明すぎるんだけどこれは…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

もともとは配列できたものの - を B に変換していたのですが、配列以外のものが使えなかったので、配列じゃないときは違う処理にするための判定です

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

配列じゃないものがこの関数を呼ぶのってそもそも実装的になんか違うんじゃないかなぁと感じていて、

配列じゃないやつがこれを呼ぶパターンっていつでしょう…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

startGateとendGateです

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

をsetStateするときです

Comment thread src/screens/GuideScreen.tsx Outdated
);
}

private elevatorObjectPointPickOut = () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なんか関数名が一周回ってわかりにくくなってる気がします?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getElevatorObjectPointはどうです?

Comment thread src/screens/ElevatorScreen.tsx Outdated
@fumihumi
Copy link
Copy Markdown
Contributor

全体的に不要になったコメントは削除してください…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants