环境: “ react”:“ 16.8.6”, “ react-native”:“ 0.60.5”,
答案 0 :(得分:0)
查看似乎受支持的文档:https://facebook.github.io/react-native/docs/layout-props#justifycontent
支持的类型包括:
class SimulationsController < ApplicationController
before_action :set_simulation, only: [:show, :edit, :update, :destroy, :set_tax_rate]
def new
@simulation = Simulation.new
end
def create
@simulation = Simulation.new(simulation_params)
@simulation.user = current_user
if @simulation.save
render :index
else
render :new
end
end
def index
@simulations = Simulation.all
end
def edit
end
def show
end
def update
end
def destroy
end
private
def set_simulation
@simulation = Simulation.find(params[:id])
end
def simulation_params
params.require(:simulation).permit(:activity, :reglementary, :accre, :year_existence, :user_id)
end
end
答案 1 :(得分:0)
justifyContent: 'space-evenly'
,因此在0.60.5中也受支持。