1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Lynx開発環境をandroid(pixel)上で実行してみる

Last updated at Posted at 2025-03-16

はじめに

自分の備忘録のために調べたことと参照先をまとめていきたい。
Android端末上に構築した環境でLynxを試してみたい。
下記環境へのnode.js npmの構築は以下前述
参照:https://qiita.com/Shanuki/items/5c40d25f7f594b92a49a

目次

環境

初期状態で実行

参照:https://lynxjs.org/guide/start/quick-start.html#ios-simulator-platform=macos-arm64,explorer-platform=ios-simulator

1.プロジェクト作成

lynxSmpというディレクトリを作成して進める。

npm create rspeedy@latest

対話形式で生成するプロジェクトの名称・言語・linterを聞かれるので設定していく。

対話内容
> npx
> create-rspeedy

◆  Create Rspeedy Project
│
◇  Project name or path
│  lynxSmp #生成するディレクトリ名称
│
◇  Select language
│  TypeScript #言語選択
│
◇  Select additional tools (Use <space> to select,
<enter> to continue)
│  none #lintツール選択
│
◇  Next steps ─────────────╮
│                          │
│  1. cd lynxSmp           │
│  2. git init (optional)  │
│  3. npm install          │
│  4. npm run dev          │
│                          │
├──────────────────────────╯
│
└  All set, happy coding!

実行結果
1000005658.png

2.実行環境のインストール

公式サイトQRコードから実行ツールをインストール
1000005659.png

3.実行

cd lynxSmp
npm install
npm run dev

ポートへのアクセス許可が出ますので許可します。
1000005662.png

4.実行結果

1000005664.png

先程インストールしたlynxExploreでQRコードを読み込む。今回は同じ端末上でやっているので出力されたURLを直接入力するとアプリの初期画面が出力されます。
1000005661.png

実行することが出来ました。
1000005649.png

編集してみる

以下のファイルを編集して実行してみます。

src/App.tsx
<text className="Title">ここを編集しました。</text>

再度実行してみる

npm install
npm run dev

実行結果
1000005663.png

環境自体は問題なさそうですが、実際に動かしながら何か作るとなるとデバッグ等で苦戦しそうです。
つぎはTypeScriptの勉強がてらテーマを見つけて何か作ってみたいと思います。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?